fix: regenerate desktop latest.json after deploy checkout

Signed updater bundles on disk are preserved across deploy, but
latest.json was reset to the git placeholder. Reconcile on nginx reload.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 11:44:33 +09:00
parent 5c29ddaf23
commit 14b8c681b0
2 changed files with 38 additions and 0 deletions
@@ -2,10 +2,15 @@
# desktop/updates static 반영 — nginx reload (볼륨 마운트 시 재빌드 불필요)
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
WORK_TREE="${WORK_TREE:-/Users/aidev/apps/goldenChart}"
COMPOSE="${DOCKER_COMPOSE_FILE:-$WORK_TREE/docker-compose.yml}"
CONTAINER="${FRONTEND_CONTAINER:-gc-frontend}"
if [[ -x "$ROOT/scripts/reconcile-desktop-latest-json.sh" ]]; then
WORK_TREE="$WORK_TREE" "$ROOT/scripts/reconcile-desktop-latest-json.sh" || true
fi
if [[ ! -f "$COMPOSE" ]]; then
echo "[reload-desktop-static] skip — no compose: $COMPOSE"
exit 0