앱 버전표시
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user