chore: update sync-version script, only build app exe

This commit is contained in:
2025-07-07 10:21:56 +02:00
parent 9f75a32502
commit 79795190f0
2 changed files with 8 additions and 18 deletions

View File

@@ -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}`);
}