fix: Mac desktop updater — v0.1.2 with signed pubkey; clearer errors
Rebuild dmg with real updater.pub. Improve check failure messages and fix publish signing when TAURI_SIGNING_PRIVATE_KEY is set. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -37,8 +37,11 @@ function formatUpdateError(e: unknown): string {
|
||||
const msg = e instanceof Error ? e.message : String(e ?? '');
|
||||
const lower = msg.toLowerCase();
|
||||
if (!msg.trim()) return '업데이트 확인에 실패했습니다.';
|
||||
if (/json|parse|unexpected end|eof|empty/.test(lower)) {
|
||||
return '서버 업데이트 정보(latest.json)를 읽을 수 없습니다. PC 프로그램 탭에서 새 dmg를 받아 주세요.';
|
||||
if (/could not fetch a valid release json|release not found/.test(lower)) {
|
||||
return '업데이트 서버 응답을 처리하지 못했습니다. 잠시 후 다시 시도하거나 PC 프로그램 탭에서 dmg를 새로 설치해 주세요.';
|
||||
}
|
||||
if (/json|parse|unexpected end|eof|empty|deserialize|invalid value for/.test(lower)) {
|
||||
return '서버 업데이트 정보(latest.json) 형식 오류입니다. PC 프로그램 탭에서 새 dmg를 받아 주세요.';
|
||||
}
|
||||
if (/signature|pubkey|verify|minisign|invalid key/.test(lower)) {
|
||||
return '업데이트 서명 검증에 실패했습니다. 웹 PC 프로그램 탭에서 설치 파일을 다시 받아 주세요.';
|
||||
|
||||
Reference in New Issue
Block a user