mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-11-30 16:02:58 +08:00
feat: 发送支持群聊@成员
生命周期整理 清理残留整理 完善skill
This commit is contained in:
1 parent
804466aad8
commit
5d4ba73771
28 files changed
+1214
-103
No files matched your search
@@ -417,6 +417,7 @@ function isMacosCodeValid(targetPath, run = runCodesign) {
|
||||
|
||||
function findMacosHelperPaths(runtimeResources) {
|
||||
const paths = MACOS_HELPER_NAMES.map((name) => path.join(runtimeResources, 'resources', name))
|
||||
paths.push(path.join(runtimeResources, 'runtime', 'darwin-arm64', 'tm-wechat-host'))
|
||||
if (process.env.TRACEMEMO_EDITION) {
|
||||
paths.push(...MACOS_EDITION_CODE_PATHS.map((segments) => path.join(runtimeResources, 'resources', ...segments)))
|
||||
}
|
||||
@@ -427,7 +428,8 @@ function signMacosHelpers(runtimeResources, run = runCodesign) {
|
||||
const helperPaths = findMacosHelperPaths(runtimeResources)
|
||||
for (const helperPath of helperPaths) {
|
||||
if (!helperPath.endsWith('.dylib')) chmodSync(helperPath, 0o755)
|
||||
if (!isMacosCodeValid(helperPath, run)) {
|
||||
const runtimeHost = path.basename(helperPath) === 'tm-wechat-host'
|
||||
if (runtimeHost || !isMacosCodeValid(helperPath, run)) {
|
||||
run(['--force', '--sign', '-', helperPath])
|
||||
}
|
||||
const architectures = readBinaryArchitectures(helperPath)
|
||||
|
||||
Reference in new issue
Block a user