From 79795190f02d95c4bf0270e0ef589f64be65fef3 Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Mon, 7 Jul 2025 10:21:56 +0200 Subject: [PATCH] chore: update sync-version script, only build app exe --- scripts/sync-version.ts | 8 +++++--- src-tauri/tauri.conf.json | 18 +++--------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/scripts/sync-version.ts b/scripts/sync-version.ts index 362b556..a9bbaa9 100644 --- a/scripts/sync-version.ts +++ b/scripts/sync-version.ts @@ -13,7 +13,9 @@ const version = cargo.package['version']; if (!version) throw new Error('Could not find version in Cargo.toml'); const tauriConf = JSON.parse(fs.readFileSync(tauriConfPath, 'utf8')); -tauriConf.version = version; +if (tauriConf.version !== version) { + tauriConf.version = version; -fs.writeFileSync(tauriConfPath, JSON.stringify(tauriConf, null, 2)); -console.log(`✅ Synced tauri.conf.json version to ${version}`); + fs.writeFileSync(tauriConfPath, JSON.stringify(tauriConf, null, 2)); + console.log(`✅ Synced tauri.conf.json version to ${version}`); +} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index c869beb..4bfbbe6 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -27,21 +27,9 @@ }, "bundle": { "active": true, - "targets": "all", - "windows": { - "allowDowngrades": true, - "certificateThumbprint": null, - "digestAlgorithm": null, - "nsis": null, - "signCommand": null, - "timestampUrl": null, - "tsp": false, - "webviewInstallMode": { - "silent": true, - "type": "downloadBootstrapper" - }, - "wix": null - }, + "targets": [ + "app" + ], "icon": [ "icons/32x32.png", "icons/128x128.png",