fix: Mac desktop updater — platform-aware errors, HTTPS latest.json
Show Mac-specific update errors on macOS (not Windows message). Force HTTPS bundle URLs, fix reconcile version from bundle filenames, bump to 0.1.4. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,6 +8,7 @@ UPDATES_SRC="${UPDATES_SRC:-$ARTIFACT_DIR/updates}"
|
||||
UPDATES_DIR="${UPDATES_DIR:-${WORK_TREE:-$ROOT}/frontend/public/desktop/updates}"
|
||||
WEB_STATIC_DIR="${WEB_STATIC_DIR:-$UPDATES_DIR}"
|
||||
BASE_URL="${DESKTOP_UPDATE_BASE_URL:-https://exdev.co.kr/desktop/updates}"
|
||||
BASE_URL="${BASE_URL/http:\/\//https:\/\/}"
|
||||
DESKTOP_RELEASE_DIR="${GC_DESKTOP_APP_RELEASE_DIR:-$ROOT/data/desktop-releases}"
|
||||
KEY_PATH="${TAURI_SIGNER_KEY:-$HOME/.tauri/goldenchart.key}"
|
||||
DESKTOP_DIR="$ROOT/desktop"
|
||||
@@ -64,6 +65,11 @@ fi
|
||||
# build-info 복사
|
||||
if [[ -f "$BUILD_INFO" ]]; then
|
||||
cp -f "$BUILD_INFO" "$PUBLISH_UPDATES/build-info.json"
|
||||
node -e "
|
||||
const fs=require('fs'); const p=process.argv[1]; const v=process.argv[2];
|
||||
const j=JSON.parse(fs.readFileSync(p,'utf8')); j.version=v;
|
||||
fs.writeFileSync(p, JSON.stringify(j,null,2)+'\n');
|
||||
" "$PUBLISH_UPDATES/build-info.json" "$VERSION"
|
||||
fi
|
||||
|
||||
# latest.json
|
||||
|
||||
Reference in New Issue
Block a user