Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 0ead6d5

Browse files
committed
Add Makefile
A build script
1 parent 9b8350c commit 0ead6d5

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,7 @@ Packages
9595
xcuserdata
9696
DerivedData/
9797
*.xcodeproj
98+
99+
### Release ###
100+
101+
wechattweak-cli

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.DEFAULT := build
2+
3+
build:
4+
swift package purge-cache
5+
swift package clean
6+
swift build -c release --arch arm64 --arch x86_64
7+
cp .build/apple/Products/Release/wechattweak-cli .
8+
9+
clean:
10+
swift package purge-cache
11+
swift package clean
12+
rm -rf .build wechattweak-cli

0 commit comments

Comments
 (0)