mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
feat: Reader Skill 支持版本自检与自助更新
微信机器人回复剥离引用编号、列表改用空行分隔,失败通知补失败时刻 问问微信关键词检索在索引落后时按单会话直读原始记录兜底 关闭窗口支持记住选择并在设置中修改 退群监控刷新列表
This commit is contained in:
1 parent
fd7d5016a8
commit
eaa25cd29e
33 files changed
+1401
-154
No files matched your search
@@ -5,8 +5,13 @@ import { join } from 'path'
|
||||
export function isPackagedRuntime(): boolean {
|
||||
if (app.isPackaged) return true
|
||||
|
||||
// 非 Electron 进程(例如单元/集成测试)里 process.resourcesPath 不存在,
|
||||
// 此时 join 会抛错。没有 resources 目录就必然不是打包运行时。
|
||||
const resourcesPath = process.resourcesPath
|
||||
if (!resourcesPath) return false
|
||||
|
||||
return (
|
||||
existsSync(join(process.resourcesPath, 'app.asar')) &&
|
||||
existsSync(join(process.resourcesPath, 'app-update.yml'))
|
||||
existsSync(join(resourcesPath, 'app.asar')) &&
|
||||
existsSync(join(resourcesPath, 'app-update.yml'))
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user