From 25842e545d996af3971a348154687f00741b3ad4 Mon Sep 17 00:00:00 2001 From: StarKnightt Date: Fri, 25 Jul 2025 22:10:53 +0530 Subject: [PATCH 1/2] I removed some unnecessary folders and code snippets too --- src-tauri/src/lib.rs | 17 ++++++++--------- src-tauri/tauri.conf.json | 2 +- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 55e6579..9d5b4a2 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -9,25 +9,24 @@ fn greet(name: String) -> String { #[tauri::command] async fn read_file_content(path: String) -> Result { - fs::read_to_string(path) - .map_err(|e| e.to_string()) + fs::read_to_string(path).map_err(|e| e.to_string()) } #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() .setup(|app| { let main_window = app.get_window("main").expect("main window not found"); - + // Apply shadow only on Windows and macOS #[cfg(any(windows, target_os = "macos"))] { - set_shadow(&main_window, true).expect("Failed to set window shadow"); + set_shadow(&main_window, true).expect("Failed to set window shadow"); } - + main_window.show().expect("failed to show window"); - + let handle = app.handle(); - + // Handle file opening app.listen_global("tauri://file-drop", move |event| { if let Some(payload) = event.payload() { @@ -36,10 +35,10 @@ pub fn run() { } } }); - + Ok(()) }) .invoke_handler(tauri::generate_handler![greet, read_file_content]) .run(tauri::generate_context!()) .expect("error while running tauri application"); -} \ No newline at end of file +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 976c490..fe19478 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -33,7 +33,7 @@ }, "bundle": { "active": true, - "targets": ["msi", "nsis"], + "targets": ["msi", "nsis", "deb", "appimage"], "identifier": "com.cleantype.app", "icon": [ "icons/32x32.png", From abc99ca075c6c60732fd3a02e4b22e1cb82a776a Mon Sep 17 00:00:00 2001 From: StarKnightt Date: Fri, 25 Jul 2025 22:19:49 +0530 Subject: [PATCH 2/2] fixed some major link issues --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ea63697..96a5297 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ A modern, efficient text cleaning tool built with Tauri and React. CleanType hel ## Installation -Download the latest installer from our [releases page](https://yourusername.github.io/cleantype/downloads). +Download the latest installer from our [releases page](https://github.com/StarKnightt/CleanType/releases). **Note**: When running the installer, you may see a Windows SmartScreen warning. This occurs because the application is new and hasn't built up enough reputation yet. You can safely proceed by clicking "More info" and then "Run anyway". @@ -34,7 +34,7 @@ Download the latest installer from our [releases page](https://yourusername.gith 2. Clone the repository: ```bash - git clone https://github.com/yourusername/cleantype.git + git clone https://github.com/StarKnightt/CleanType.git cd cleantype ``` @@ -69,4 +69,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file ## Support -If you encounter any issues or have questions, please [open an issue](https://github.com/yourusername/cleantype/issues) on GitHub. +If you encounter any issues or have questions, please [open an issue](https://github.com/StarKnightt/CleanType/issues) on GitHub. \ No newline at end of file