맥 os 전략지표 드래그 문제 최종 수정

This commit is contained in:
Macbook
2026-06-15 10:06:52 +09:00
parent a3aca639c1
commit 0e09825cab
13 changed files with 451 additions and 48 deletions
+18 -4
View File
@@ -7,12 +7,14 @@ CONF="$ROOT/desktop/src-tauri/tauri.conf.json"
KEY_PATH="${TAURI_SIGNER_KEY:-$HOME/.tauri/goldenchart.key}"
PUB_PATH="${TAURI_SIGNER_PUB:-$ROOT/desktop/updater.pub}"
# 공개키는 private key 없이도 앱에 포함해야 자동 업데이트 검증 가능
if [[ -f "$PUB_PATH" && -x "$ROOT/scripts/patch-tauri-updater-pubkey.sh" ]]; then
"$ROOT/scripts/patch-tauri-updater-pubkey.sh"
fi
enable="false"
if [[ -f "$KEY_PATH" && -f "$PUB_PATH" ]]; then
enable="true"
if [[ -x "$ROOT/scripts/patch-tauri-updater-pubkey.sh" ]]; then
"$ROOT/scripts/patch-tauri-updater-pubkey.sh"
fi
fi
node -e "
@@ -42,7 +44,19 @@ if [[ "$enable" == "true" ]]; then
echo "[prepare-tauri-build] updater signing enabled"
else
unset TAURI_SIGNING_PRIVATE_KEY 2>/dev/null || true
echo "[prepare-tauri-build] updater signing skipped (no key)"
echo "[prepare-tauri-build] updater signing skipped (no private key at $KEY_PATH)"
fi
# 빌드된 앱이 자동 업데이트 가능한지 pubkey 확인
PUBKEY_CHECK="$(node -e "
const c=require(process.argv[1]);
const k=c.plugins?.updater?.pubkey||'';
process.exit(k && k!=='REPLACE_WITH_TAURI_SIGNER_PUBKEY' ? 0 : 1);
" "$CONF" 2>/dev/null && echo ok || echo fail)"
if [[ "$PUBKEY_CHECK" != "ok" ]]; then
echo "[prepare-tauri-build] ERROR: updater pubkey 미설정 — desktop/updater.pub 확인 후 patch-tauri-updater-pubkey.sh 실행" >&2
echo " 이 상태로 빌드하면 앱 내 자동 업데이트가 동작하지 않습니다." >&2
exit 1
fi
# macOS: ad-hoc codesign by default (Apple Silicon requires signing).