diff --git a/package.json b/package.json index b1c50ed..64dd0bb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "to-do-app", "private": true, - "version": "0.0.0", + "version": "1.4.0", "type": "module", "scripts": { "dev": "vite", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c7b38fe..d436055 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -24,5 +24,5 @@ custom-protocol = ["tauri/custom-protocol"] [profile.release] lto = true # Enables link to optimizations -opt-level = "z" # Optimize for binary size +opt-level = "s" # Optimize for binary size strip = true # Remove debug symbols diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1fbf7b8..47ad829 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -26,6 +26,9 @@ "unmaximize": true, "unminimize": true, "startDragging": true + }, + "fs": { + "scope": ["$RESOURCE/*"] } }, "windows": [ @@ -49,6 +52,9 @@ "icons/128x128@2x.png", "icons/icon.icns", "icons/icon.ico" + ], + "resources": [ + ".env" ] } } diff --git a/src/App.vue b/src/App.vue index e7ff65b..6f7db34 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,10 +32,11 @@ let to_change_name = ref(""); let to_change_priority = ref(""); onBeforeMount(async () => { - await invoke('check_or_create_tasks_file'); - - await get_tasks(); - pending.value = false; + await invoke('check_or_create_tasks_file') + .then(async () => { + await get_tasks(); + pending.value = false; + }); document .getElementById('titlebar-minimize')