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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user