mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-10-04 19:43:43 +08:00
13 lines
312 B
TypeScript
13 lines
312 B
TypeScript
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'))
|
|
)
|
|
}
|