앱 업데이트 실패 문제

This commit is contained in:
Macbook
2026-06-16 23:02:49 +09:00
parent 074b4fd03a
commit 092d181d0f
8 changed files with 173 additions and 7 deletions
+16
View File
@@ -176,6 +176,22 @@ elif [[ "$GEN_RC" -ne 0 ]]; then
exit "$GEN_RC"
fi
# 빈·손상 latest.json 방지
node "$WORK_TREE/scripts/ensure-desktop-latest-json.mjs" \
--version "$VERSION" \
--dir "$PUBLISH_UPDATES" \
--base-url "$BASE_URL" \
--notes "$NOTES" || {
log "ERROR: latest.json 무결성 검증 실패" >&2
exit 1
}
LATEST_SIZE="$(wc -c < "$PUBLISH_UPDATES/latest.json" | tr -d ' ')"
if [[ "${LATEST_SIZE:-0}" -lt 8 ]]; then
log "ERROR: latest.json is empty (${LATEST_SIZE} bytes)" >&2
exit 1
fi
log "Published v${VERSION}:"
ls -la "$PUBLISH_UPDATES"