앱 업데이트 실패 문제
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user