From 61de2fb1e6dc7780cfe8d5150156db5f6d5c682d Mon Sep 17 00:00:00 2001 From: Macbook Date: Sun, 14 Jun 2026 11:45:24 +0900 Subject: [PATCH] fix: reconcile desktop latest.json after deploy; nginx MIME types Run reload-frontend-desktop-static from post-receive after deploy so signed updater manifest survives git checkout placeholder reset. Co-authored-by: Cursor --- frontend/nginx.conf | 4 ++++ scripts/post-receive | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index f468d6c..415380c 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -145,7 +145,11 @@ server { location /desktop/updates/ { alias /usr/share/nginx/html/desktop/updates/; add_header Cache-Control "no-cache, no-store, must-revalidate"; + } + location = /desktop/updates/latest.json { + alias /usr/share/nginx/html/desktop/updates/latest.json; default_type application/json; + add_header Cache-Control "no-cache, no-store, must-revalidate"; } # gzip 압축 diff --git a/scripts/post-receive b/scripts/post-receive index 2467cf8..5d4e2ee 100755 --- a/scripts/post-receive +++ b/scripts/post-receive @@ -43,6 +43,12 @@ while read -r OLDREV NEWREV REFNAME; do fi echo "$(date '+%Y-%m-%d %H:%M:%S') $HOOK_TAG 배포 완료" + RELOAD="${WORK_TREE}/scripts/reload-frontend-desktop-static.sh" + if [ -x "$RELOAD" ]; then + echo "$(date '+%Y-%m-%d %H:%M:%S') $HOOK_TAG desktop updates static 동기화" + WORK_TREE="$WORK_TREE" "$RELOAD" >> "$DEPLOY_LOG" 2>&1 || true + fi + # Desktop(macOS·Windows) Jenkins 빌드 — git push 성공 후 자동 (웹 배포와 독립) WORK_TREE="${WORK_TREE:-/Users/aidev/apps/goldenChart}" TRIGGER="${WORK_TREE}/scripts/trigger-desktop-jenkins-build.sh"