fix: clarify updater error when dmg has placeholder signing pubkey
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -46,6 +46,9 @@ function formatUpdateError(e: unknown): string {
|
|||||||
if (/signature|pubkey|verify|minisign|invalid key/.test(lower)) {
|
if (/signature|pubkey|verify|minisign|invalid key/.test(lower)) {
|
||||||
return '업데이트 서명 검증에 실패했습니다. 웹 PC 프로그램 탭에서 설치 파일을 다시 받아 주세요.';
|
return '업데이트 서명 검증에 실패했습니다. 웹 PC 프로그램 탭에서 설치 파일을 다시 받아 주세요.';
|
||||||
}
|
}
|
||||||
|
if (/invalid symbol|offset \d+|replace_with/.test(lower)) {
|
||||||
|
return '이 버전(v0.1.1 이전/초기 dmg)에는 자동 업데이트 키가 없습니다. 웹 PC 프로그램 탭에서 최신 dmg를 받아 Applications에 다시 설치해 주세요. 이후부터는 자동 업데이트가 됩니다.';
|
||||||
|
}
|
||||||
if (/404|not found/.test(lower)) {
|
if (/404|not found/.test(lower)) {
|
||||||
return '업데이트 파일을 찾을 수 없습니다. 관리자에게 문의하거나 dmg를 직접 다운로드해 주세요.';
|
return '업데이트 파일을 찾을 수 없습니다. 관리자에게 문의하거나 dmg를 직접 다운로드해 주세요.';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user