앱 버전표시

This commit is contained in:
Macbook
2026-06-14 19:20:48 +09:00
parent b2c6650cd5
commit 5045a548a4
10 changed files with 137 additions and 31 deletions
+11
View File
@@ -64,6 +64,17 @@ fi
VERSION="$(node -p "require('$CONF').version")"
echo "Version: $VERSION"
node -e "
const fs = require('fs');
const confPath = process.argv[1];
const version = process.argv[2];
const title = 'GoldenChart (v' + version + ')';
const conf = JSON.parse(fs.readFileSync(confPath, 'utf8'));
if (conf.app?.windows?.[0]) conf.app.windows[0].title = title;
fs.writeFileSync(confPath, JSON.stringify(conf, null, 2) + '\n');
console.log('window title →', title);
" "$CONF" "$VERSION"
if [[ -f "$ROOT/scripts/patch-tauri-updater-pubkey.sh" ]]; then
chmod +x "$ROOT/scripts/patch-tauri-updater-pubkey.sh"
fi