diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index be39a48..37f8754 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -10,11 +10,7 @@ "active": true, "category": "Productivity", "copyright": "", - "targets": [ - "deb", - "nsis", - "appimage" - ], + "targets": ["deb", "nsis", "appimage"], "externalBin": [], "icon": [ "icons/32x32.png", @@ -37,10 +33,7 @@ "providerShortName": null, "signingIdentity": null }, - "resources": [ - "./audio/button-press.wav", - "./audio/alarm-kitchen.mp3" - ], + "resources": ["./audio/button-press.wav", "./audio/alarm-kitchen.mp3"], "shortDescription": "Pomodoro Timer", "linux": { "appimage": { @@ -53,7 +46,7 @@ }, "productName": "Pomodoro", "mainBinaryName": "pomodoro", - "version": "0.9.1", + "version": "0.9.2", "identifier": "dev.tfkhdyt.pomodoro", "plugins": {}, "app": { diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d789681..0d42019 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -20,6 +20,7 @@ import { match } from 'ts-pattern'; import type { LayoutData } from './$types'; import { exit } from '@tauri-apps/plugin-process'; + import { resourceDir } from '@tauri-apps/api/path'; export let data: LayoutData; @@ -39,7 +40,9 @@ $: progress = 100 - (timeLeft / 60 / targetMinutes) * 100; let lastTimeInterval: number; - onMount(() => { + onMount(async () => { + console.log('Resource dir:', await resourceDir()); + timeLeft = data.appData.lastTime ?? targetMinutes * 60; lastTimeInterval = setInterval(async () => {