Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyyoung committed Mar 25, 2024
1 parent 8b3dcc2 commit d4eba24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,4 +143,5 @@ fastlane/FastlaneRunner
### Project ###

Gems
WeChatTweak.xcarchive
WeChatTweak.framework
27 changes: 15 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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."

0 comments on commit d4eba24

Please sign in to comment.