Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

老哥,搞个mac版的哇 #12

Open
Laura0xiaoshizi opened this issue Oct 19, 2023 · 5 comments
Open

老哥,搞个mac版的哇 #12

Laura0xiaoshizi opened this issue Oct 19, 2023 · 5 comments

Comments

@Laura0xiaoshizi
Copy link

No description provided.

@wux1an
Copy link
Owner

wux1an commented Oct 20, 2023

Mac 小程序目录结构和加密方式不一样,处理起来比较麻烦,可以参考:https://github.com/TinyNiko/mac_wxapkg_decrypt

Windows 版微信比较好操作,解密后解包就可以了。Mac 电脑建议在 Windows 虚拟机里操作。

@panzhen1992
Copy link

Mac 电脑建议在 Windows 虚拟机里操作程序报错

@StringKe
Copy link

StringKe commented Apr 4, 2024

@wux1an 似乎不支持 arm windows, release 提供的 binrary 无法执行

CleanShot 2024-04-04 at 14 09 50

自己build后正常使用。

@magbone
Copy link

magbone commented Apr 21, 2024

我在原有基础上修改了几处代码,可以实现在MacOS系统上对微信小程序进行解包,不敢保证所有的Mac版本和微信版本可用。
Mac OS 12.7.4 intel Wexin 3.8.2

@K404mi
Copy link

K404mi commented Jul 11, 2024

我在原有基础上修改了几处代码,可以实现在MacOS系统上对微信小程序进行解包,不敢保证所有的Mac版本和微信版本可用。 Mac OS 12.7.4 intel Wexin 3.8.2

在你的基础上还要在/cmd/unpack.go里过滤".DS_Store",我这在解包的时候会报fdopendir /Users/****/Library/Containers/com.tencent.xinWeChat/Data/.wxapplet/packages/wx******/.DS_Store: not a directory
在unpack.go如下位置新增一个过滤即可

		var allFileCount = 0
		for _, subDir := range dirs {
			//修改开始
			if subDir.Name() == ".DS_Store" {
				continue
			}
			//修改结束

			subOutput := filepath.Join(output, subDir.Name())

			files, err := scanFiles(filepath.Join(root, subDir.Name()))
			util.Fatal(err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants