refactor: support WeChat 4.x

This commit is contained in:
Sunny Young
2025-12-05 15:52:37 +08:00
parent 1eee214417
commit 8e13e947d5
50 changed files with 1219 additions and 2529 deletions
+6 -21
View File
@@ -1,24 +1,9 @@
debug::
xcodebuild build \
-workspace WeChatTweak.xcworkspace \
-scheme WeChatTweak \
-configuration Debug
DYLD_INSERT_LIBRARIES=WeChatTweak.framework/WeChatTweak /Applications/WeChat.app/Contents/MacOS/WeChat &
.PHONY: build clean
release::
xcodebuild archive \
-workspace WeChatTweak.xcworkspace \
-scheme WeChatTweak \
-destination 'generic/platform=macOS' \
-archivePath WeChatTweak.xcarchive
build::
swift build -c release --arch arm64 --arch x86_64
cp -f .build/apple/Products/Release/wechattweak ./wechattweak
clean::
rm -rf WeChatTweak.xcarchive WeChatTweak.framework
install::
@echo "Makefile installation has been deprecated!!!"
@echo "For more information: \033[33;32mhttps://github.com/sunnyyoung/WeChatTweak-CLI\033[0m."
uninstall::
@echo "Makefile installation has been deprecated!!!"
@echo "For more information: \033[33;32mhttps://github.com/sunnyyoung/WeChatTweak-CLI\033[0m."
rm -rf .build
rm -f wechattweak