Skip to content

Commit

Permalink
Release v0.0.2 - macOS fixes and tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Apr 9, 2024
1 parent c78eec3 commit 4601e30
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
```
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bewcloud-sync",
"private": true,
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
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,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"
Expand Down
4 changes: 4 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
8 changes: 5 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"package": {
"productName": "bewCloud Desktop Sync",
"version": "0.0.1"
"version": "0.0.2"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -66,11 +66,13 @@
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
]
],
"category": "Utility"
},
"systemTray": {
"iconPath": "icons/sync-unset.png",
"iconAsTemplate": true
"iconAsTemplate": true,
"title": "bewCloud Desktop Sync"
}
}
}
6 changes: 6 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,9 @@ function App() {
id="new_username"
type="text"
placeholder="[email protected]"
autocorrect="off"
autocapitalize="off"
spellcheck="false"

Check failure on line 308 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, x86_64, x86_64-unknown-linux-gnu)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 308 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, aarch64, aarch64-unknown-linux-gnu)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 308 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (macos-latest, x86_64, x86_64-apple-darwin)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 308 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (macos-latest, aarch64, aarch64-apple-darwin)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 308 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (windows-latest, x86_64, x86_64-pc-windows-msvc)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.
onInput={(event) =>
setNewAccountUsername(event.currentTarget.value)
}
Expand Down Expand Up @@ -335,6 +338,9 @@ function App() {
id="new_name"
type="text"
placeholder="bewcloud"
autocorrect="off"
autocapitalize="off"
spellcheck="false"

Check failure on line 343 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, x86_64, x86_64-unknown-linux-gnu)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 343 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest, aarch64, aarch64-unknown-linux-gnu)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 343 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (macos-latest, x86_64, x86_64-apple-darwin)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 343 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (macos-latest, aarch64, aarch64-apple-darwin)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.

Check failure on line 343 in src/App.tsx

View workflow job for this annotation

GitHub Actions / build (windows-latest, x86_64, x86_64-pc-windows-msvc)

Type 'string' is not assignable to type 'boolean | SignalLike<boolean | undefined> | undefined'.
onInput={(event) =>
setNewAccountName(event.currentTarget.value)
}
Expand Down

0 comments on commit 4601e30

Please sign in to comment.