fix: Windows updater — platform-specific reinstall hints for v0.1.1 pubkey error

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Macbook
2026-06-14 12:26:28 +09:00
parent c0a23e4057
commit e658d9afe4
3 changed files with 32 additions and 2 deletions
+3
View File
@@ -69,6 +69,9 @@ async function formatUpdateError(e: unknown): Promise<string> {
: '업데이트 서명 검증에 실패했습니다. PC 프로그램 탭에서 exe를 다시 받아 주세요.';
}
if (/invalid symbol|offset \d+|replace_with/.test(lower)) {
if (onWin) {
return '이 버전(v0.1.1 이전/초기 exe)에는 자동 업데이트 키가 없습니다. 웹 PC 프로그램 탭에서 최신 exe 설치 파일을 받아 다시 설치해 주세요. 이후부터는 자동 업데이트가 됩니다.';
}
return '이 버전(v0.1.1 이전/초기 dmg)에는 자동 업데이트 키가 없습니다. 웹 PC 프로그램 탭에서 최신 dmg를 받아 Applications에 다시 설치해 주세요. 이후부터는 자동 업데이트가 됩니다.';
}
if (/404|not found/.test(lower)) {
@@ -9,6 +9,7 @@ import {
type DesktopUpdatePhase,
type DesktopUpdateProgress,
} from '../utils/desktopBridge';
import { isMacDesktop, isWindowsDesktop } from '../utils/platform';
interface Props {
open: boolean;
@@ -161,8 +162,22 @@ const DesktopUpdateModal: React.FC<Props> = ({ open, onClose, autoStart = true }
{phase === 'error' && (
<p className="desktop-update-hint">
{isWindowsDesktop() ? (
<>
. <strong>PC </strong>
<strong> exe</strong> .
</>
) : isMacDesktop() ? (
<>
. <strong>PC </strong>
<strong> dmg</strong> Applications에 .
</>
) : (
<>
. <strong>PC </strong>
macOS는 dmg, Windows는 exe .
</>
)}
</p>
)}
+12
View File
@@ -24,3 +24,15 @@ export function getRuntimePlatform(): RuntimePlatform {
export function isWeb(): boolean {
return getRuntimePlatform() === 'web';
}
/** Tauri 데스크톱 — Windows WebView2 */
export function isWindowsDesktop(): boolean {
if (!isDesktop()) return false;
return typeof navigator !== 'undefined' && /win/i.test(navigator.userAgent);
}
/** Tauri 데스크톱 — macOS */
export function isMacDesktop(): boolean {
if (!isDesktop()) return false;
return typeof navigator !== 'undefined' && /mac/i.test(navigator.userAgent);
}