chore: bump desktop version to 0.1.1; preserve latest.json version on reconcile

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 11:49:40 +09:00
parent 402f664db7
commit a3fb92f72c
3 changed files with 12 additions and 2 deletions
+10
View File
@@ -13,6 +13,16 @@ if [[ ! -d "$UPDATES_DIR" ]]; then
fi
VERSION="$(node -p "require('$CONF').version" 2>/dev/null || echo '0.1.0')"
LATEST_JSON="$UPDATES_DIR/latest.json"
if [[ -f "$LATEST_JSON" ]]; then
EXISTING="$(node -p "
const fs=require('fs'); const v=require('$LATEST_JSON').version||'0.0.0';
const c='$VERSION'.split('.').map(Number); const e=v.split('.').map(Number);
for (let i=0;i<3;i++){ if((e[i]||0)>(c[i]||0)){ console.log(v); process.exit(0);} if((e[i]||0)<(c[i]||0)) break;}
console.log('$VERSION');
" 2>/dev/null || echo "$VERSION")"
VERSION="$EXISTING"
fi
NOTES="${DESKTOP_RELEASE_NOTES:-GoldenChart Desktop $VERSION}"
set +e