Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ __pycache__/
*.pyc

# Local Package Builds
/build
/build

docs/marketing
2 changes: 1 addition & 1 deletion config/cleanmylinux.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ Terminal=false
Categories=System;Utility;Security;
Keywords=clean;maintenance;performance;optimization;junk;system;apps;uninstall;
StartupNotify=true
StartupWMClass=cleanmylinux
StartupWMClass=cleanmylinux
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "CleanMyLinux"
name = "cleanmylinux"
version = "1.0.0-beta.1"
description = "A premium, high performance system maintenance and optimization tool for Linux desktops."
authors = ["Better Linux"]
Expand Down
Binary file modified src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src-tauri/icons/128x128@2x.png
Binary file not shown.
Binary file added src-tauri/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src-tauri/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src-tauri/icons/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src-tauri/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src-tauri/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src-tauri/icons/Square107x107Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square142x142Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square150x150Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square284x284Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square30x30Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square310x310Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square44x44Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square71x71Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/Square89x89Logo.png
Binary file not shown.
Binary file removed src-tauri/icons/StoreLogo.png
Binary file not shown.
Binary file removed src-tauri/icons/icon.ico
Binary file not shown.
Binary file removed src-tauri/icons/icon.png
Binary file not shown.
90 changes: 90 additions & 0 deletions src-tauri/icons/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions src-tauri/src/system_info/mod.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,60 @@
pub mod types;
pub mod utils;

#[cfg(target_os = "linux")]
pub mod scanners;
#[cfg(target_os = "linux")]
pub mod sudo;
#[cfg(target_os = "linux")]
pub mod ops;
#[cfg(target_os = "linux")]
pub mod commands;
#[cfg(target_os = "linux")]
pub mod updates;
#[cfg(target_os = "linux")]
pub mod usage;

#[cfg(target_os = "linux")]
pub use sudo::{request_sudo_session};
#[cfg(target_os = "linux")]
pub use commands::{
get_installed_apps,
get_available_updates,
run_app_updates,
uninstall_app,
};

// Provide lightweight stubs for non-Linux platforms so the Tauri app can compile
// (useful for development on macOS). These return empty/default results.
#[cfg(not(target_os = "linux"))]
mod stub {
use super::types::{AppUninstallItem, AppUpdate, SystemApps, UpdateInfo};

#[tauri::command]
pub async fn get_installed_apps() -> Result<SystemApps, String> {
Ok(SystemApps { apps: vec![], total_count: 0, total_size: 0 })
}

#[tauri::command]
pub async fn get_available_updates() -> Result<UpdateInfo, String> {
Ok(UpdateInfo { total_count: 0, updates: vec![] })
}

#[tauri::command]
pub async fn run_app_updates(_app: tauri::AppHandle, _updates: Vec<AppUpdate>) -> Result<(), String> {
Ok(())
}

#[tauri::command]
pub async fn uninstall_app(_app: tauri::AppHandle, _items: Vec<AppUninstallItem>) -> Result<(), String> {
Ok(())
}

#[tauri::command]
pub async fn request_sudo_session() -> Result<bool, String> {
Ok(false)
}
}

#[cfg(not(target_os = "linux"))]
pub use stub::{get_installed_apps, get_available_updates, run_app_updates, uninstall_app, request_sudo_session};
20 changes: 13 additions & 7 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schema.tauri.app/config/2",
"identifier": "com.betterlinux.cleanmylinux",
"mainBinaryName": "cleanmylinux",
"productName": "CleanMyLinux",
"productName": "cleanmylinux",
"build": {
"beforeDevCommand": "bun run dev",
"devUrl": "http://localhost:1420",
Expand Down Expand Up @@ -37,31 +37,37 @@
"shortDescription": "A premium system maintenance and optimization tool.",
"longDescription": "CleanMyLinux is a professional, high-performance system cleaning and optimization utility designed for modern Linux desktops. It helps you manage apps, clear system junk, and keep your desktop running smoothly with a beautiful.",
"icon": [
"icons/32x32.png",
"icons/512x512.png",
"icons/256x256.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.ico"
"icons/64x64.png",
"icons/48x48.png",
"icons/32x32.png",
"icons/16x16.png"
],
"linux": {
"deb": {
"desktopTemplate": "../config/cleanmylinux.desktop",
"files": {
"/usr/share/polkit-1/actions/com.betterlinux.cleanmylinux.policy": "../config/com.betterlinux.cleanmylinux.policy",
"/usr/bin/cleanmylinux-helper": "../scripts/cleanmylinux-helper.sh",
"/usr/share/applications/cleanmylinux.desktop": "../config/cleanmylinux.desktop"
"/usr/share/icons/hicolor/scalable/apps/cleanmylinux.svg": "icons/icon.svg"
}
},
"rpm": {
"desktopTemplate": "../config/cleanmylinux.desktop",
"files": {
"/usr/share/polkit-1/actions/com.betterlinux.cleanmylinux.policy": "../config/com.betterlinux.cleanmylinux.policy",
"/usr/bin/cleanmylinux-helper": "../scripts/cleanmylinux-helper.sh",
"/usr/share/applications/cleanmylinux.desktop": "../config/cleanmylinux.desktop"
"/usr/share/icons/hicolor/scalable/apps/cleanmylinux.svg": "icons/icon.svg"
}
},
"appimage": {
"files": {
"/usr/share/polkit-1/actions/com.betterlinux.cleanmylinux.policy": "../config/com.betterlinux.cleanmylinux.policy",
"/usr/bin/cleanmylinux-helper": "../scripts/cleanmylinux-helper.sh",
"/usr/share/applications/cleanmylinux.desktop": "../config/cleanmylinux.desktop"
"/usr/share/applications/cleanmylinux.desktop": "../config/cleanmylinux.desktop",
"/usr/share/icons/hicolor/scalable/apps/cleanmylinux.svg": "icons/icon.svg"
}
}

Expand Down
Loading