diff --git a/README.md b/README.md index 065acce..3b0589c 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ $ make test # runs tests Don't forget to check the [development](#development) section above first! +> [!NOTE] +> If you're releasing a new version, update it in `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, and `package.json` first. + ```sh $ make build # builds the app binaries! ``` diff --git a/package.json b/package.json index e98f858..91fc1c2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "bewcloud-sync", "private": true, - "version": "0.0.1", + "version": "0.0.2", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 7fff144..53f0ae5 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -271,7 +271,7 @@ checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "bewcloud-sync" -version = "0.0.1" +version = "0.0.2" dependencies = [ "async-std", "chrono", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 6bd3d00..1aec1cd 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bewcloud-sync" -version = "0.0.1" +version = "0.0.2" description = "Desktop Sync Client for bewCloud" authors = ["Bruno Bernardino"] edition = "2021" diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 6e967c6..4e4f9a9 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -230,6 +230,10 @@ fn check_if_local_directory_is_empty(directory: String) -> bool { fn get_config_file_path(app: &AppHandle) -> String { let binding = app.path_resolver().app_data_dir().unwrap(); let app_data_dir = binding.to_str().unwrap(); + + // Make sure the app data dir exists + fs::create_dir_all(&app_data_dir).unwrap(); + let config_file_name = "config.json"; let config_path_binding = Path::new(app_data_dir).join(config_file_name); let config_path = config_path_binding.to_str().unwrap(); diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 5366a2b..f1d237e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "bewCloud Desktop Sync", - "version": "0.0.1" + "version": "0.0.2" }, "tauri": { "allowlist": { @@ -66,11 +66,13 @@ "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico" - ] + ], + "category": "Utility" }, "systemTray": { "iconPath": "icons/sync-unset.png", - "iconAsTemplate": true + "iconAsTemplate": true, + "title": "bewCloud Desktop Sync" } } } diff --git a/src/App.tsx b/src/App.tsx index bf5e2dc..c5ad94a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -303,6 +303,9 @@ function App() { id="new_username" type="text" placeholder="jane.doe@example.com" + autocorrect="off" + autocapitalize="off" + spellcheck="false" onInput={(event) => setNewAccountUsername(event.currentTarget.value) } @@ -335,6 +338,9 @@ function App() { id="new_name" type="text" placeholder="bewcloud" + autocorrect="off" + autocapitalize="off" + spellcheck="false" onInput={(event) => setNewAccountName(event.currentTarget.value) }