From d4eba24e4a0045b61179a28863e3b071dabee936 Mon Sep 17 00:00:00 2001 From: Sunny Young Date: Fri, 22 Mar 2024 20:01:49 +0800 Subject: [PATCH] Update Makefile --- .gitignore | 1 + Makefile | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.gitignore b/.gitignore index 5fc384e..d7508f4 100644 --- a/.gitignore +++ b/.gitignore @@ -143,4 +143,5 @@ fastlane/FastlaneRunner ### Project ### Gems +WeChatTweak.xcarchive WeChatTweak.framework diff --git a/Makefile b/Makefile index 6d8ab40..fcae79b 100644 --- a/Makefile +++ b/Makefile @@ -1,21 +1,24 @@ -APP_PATH=/Applications/WeChat.app/Contents/MacOS -TMP_PATH=/tmp -APP_NAME=WeChat -BACKUP_NAME=WeChat.bak -FRAMEWORK_PATH=WeChatTweak.framework -FRAMEWORK_NAME=WeChatTweak -DYLIB_NAME=WeChatTweak.dylib - debug:: - DYLD_INSERT_LIBRARIES=${FRAMEWORK_PATH}/${FRAMEWORK_NAME} ${APP_PATH}/${APP_NAME} & + xcodebuild build \ + -workspace WeChatTweak.xcworkspace \ + -scheme WeChatTweak \ + -configuration Debug + DYLD_INSERT_LIBRARIES=WeChatTweak.framework/WeChatTweak /Applications/WeChat.app/Contents/MacOS/WeChat & + +release:: + xcodebuild archive \ + -workspace WeChatTweak.xcworkspace \ + -scheme WeChatTweak \ + -destination 'generic/platform=macOS' \ + -archivePath WeChatTweak.xcarchive clean:: - rm -rf ${FRAMEWORK_PATH} + 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." + @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." + @echo "For more information: \033[33;32mhttps://github.com/sunnyyoung/WeChatTweak-CLI\033[0m."