feat: 设置功能

This commit is contained in:
Wxw-Gu committed 2026-07-30 09:49:56 +08:00
1 parent 3c0e5a94cb
commit e1a174ade9
27 files changed
+1430 -17

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { app } from 'electron'
import { existsSync } from 'fs'
import { join } from 'path'
export function isPackagedRuntime(): boolean {
if (app.isPackaged) return true
return (
existsSync(join(process.resourcesPath, 'app.asar')) &&
existsSync(join(process.resourcesPath, 'app-update.yml'))
)
}