Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
A build script
  • Loading branch information
sunnyyoung committed Sep 17, 2021
1 parent 9b8350c commit 0ead6d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ Packages
xcuserdata
DerivedData/
*.xcodeproj

### Release ###

wechattweak-cli
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.DEFAULT := build

build:
swift package purge-cache
swift package clean
swift build -c release --arch arm64 --arch x86_64
cp .build/apple/Products/Release/wechattweak-cli .

clean:
swift package purge-cache
swift package clean
rm -rf .build wechattweak-cli

0 comments on commit 0ead6d5

Please sign in to comment.