From 07d4916880d0a96e8102aafd297e4355ff48050f Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Fri, 13 Mar 2026 04:27:59 +0800 Subject: [PATCH 1/8] config: add version 34888 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index e818069..1a0ce7e 100644 --- a/config.json +++ b/config.json @@ -303,5 +303,90 @@ ] } ] + }, + { + "version": "34888", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "103fc3ea8", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1001c3610", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1001c59fc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1001c5738", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1001c5ddc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1001cc640", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1001cc650", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1001bb334", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 5325f257fd3719cdc53b498cece02ea60253860e Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Sat, 14 Mar 2026 18:39:40 +0800 Subject: [PATCH 2/8] command: patch dylib by default --- Sources/WeChatTweak/Command.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/WeChatTweak/Command.swift b/Sources/WeChatTweak/Command.swift index f0642b3..c07d960 100644 --- a/Sources/WeChatTweak/Command.swift +++ b/Sources/WeChatTweak/Command.swift @@ -24,7 +24,13 @@ struct Command { } static func patch(app: URL, config: Config) async throws { - try Patcher.patch(binary: app.appendingPathComponent("Contents/MacOS/WeChat"), config: config) + let dylibURL = app.appendingPathComponent("Contents/Frameworks/wechat.dylib") + let mainURL = app.appendingPathComponent("Contents/MacOS/WeChat") + + // Check for the newer directory structure first: if wechat.dylib exists, patch it only. + // Otherwise, fall back to the main WeChat binary. + let targetURL = FileManager.default.fileExists(atPath: dylibURL.path) ? dylibURL : mainURL + try Patcher.patch(binary: targetURL, config: config) } static func resign(app: URL) async throws { From 0d4fd888fe519419fcafbd913d7c7b007309c555 Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Sat, 14 Mar 2026 18:40:07 +0800 Subject: [PATCH 3/8] config: add version 36559 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index 1a0ce7e..1b18a23 100644 --- a/config.json +++ b/config.json @@ -388,5 +388,90 @@ ] } ] + }, + { + "version": "36559", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "40e5a08", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1bea50", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c0f3c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c0c6c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c135c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c7f78", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c7f88", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1b6dac", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 6613814088c9adf9abd2d2a87465962bbb861846 Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Sat, 14 Mar 2026 21:28:05 +0800 Subject: [PATCH 4/8] config: add version 36571 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index 1b18a23..e33c397 100644 --- a/config.json +++ b/config.json @@ -473,5 +473,90 @@ ] } ] + }, + { + "version": "36571", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "40e67d0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1bfa50", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c1f3c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c1c6c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c235c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c8f78", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c8f88", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1b7dac", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 3f56dce785c2ee4b89caad8ca790e92f010d7ff0 Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Sat, 21 Mar 2026 10:53:52 +0800 Subject: [PATCH 5/8] config: add version 36603 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index e33c397..fdf31ce 100644 --- a/config.json +++ b/config.json @@ -558,5 +558,90 @@ ] } ] + }, + { + "version": "36603", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "40eb2b0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1c0a50", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c2f3c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c2c6c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c335c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c9f78", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c9f88", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1b8dac", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 7edcba81fd20a7563c68fa5a615e394adb25bbde Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Fri, 27 Mar 2026 17:14:34 +0800 Subject: [PATCH 6/8] config: add version 36677 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index fdf31ce..e9c4c64 100644 --- a/config.json +++ b/config.json @@ -643,5 +643,90 @@ ] } ] + }, + { + "version": "36677", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "4117b8c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1c0a50", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c2f3c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c2c6c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c335c", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c9f78", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c9f88", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1b8dac", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 1dea8d344bea78cc6388ad8552594358e6eee2a9 Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Sat, 4 Apr 2026 12:24:55 +0800 Subject: [PATCH 7/8] config: add version 37261 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index e9c4c64..3fe2922 100644 --- a/config.json +++ b/config.json @@ -728,5 +728,90 @@ ] } ] + }, + { + "version": "37261", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "41a85cc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1c1294", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c3780", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c34b0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c3ba0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1ca7bc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1ca7cc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "1b95a8", + "asm": "20008052C0035FD6" + } + ] + } + ] } ] From 17f3b3cd985e53d54bef34c411fa29a947b62bae Mon Sep 17 00:00:00 2001 From: hangone <56105779+hangone@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:36:33 +0800 Subject: [PATCH 8/8] config: add verison 37342 support --- config.json | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/config.json b/config.json index 3fe2922..40d9fcf 100644 --- a/config.json +++ b/config.json @@ -813,5 +813,90 @@ ] } ] + }, + { + "version": "37342", + "targets": [ + { + "identifier": "revoke", + "entries": [ + { + "arch": "arm64", + "addr": "41b4808", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startUpdater", + "entries": [ + { + "arch": "arm64", + "addr": "1c1294", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "startBackgroundUpdatesCheck", + "entries": [ + { + "arch": "arm64", + "addr": "1c3780", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "checkForUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1c34b0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "enableAutoUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1c3ba0", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "automaticallyDownloadsUpdates", + "entries": [ + { + "arch": "arm64", + "addr": "1ca7bc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "canCheckForUpdate", + "entries": [ + { + "arch": "arm64", + "addr": "1ca7cc", + "asm": "00008052C0035FD6" + } + ] + }, + { + "identifier": "multiInstance", + "entries": [ + { + "arch": "arm64", + "addr": "26ef0", + "asm": "20008052C0035FD6" + } + ] + } + ] } ]