Skip to content

Commit

Permalink
Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
crossoverJie committed Dec 19, 2021
1 parent f55413b commit 5a5cb8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Expand Up @@ -3,7 +3,8 @@ BINARY=ptg
GOBUILD=go build -ldflags "-s -w" -o ${BINARY}
GOCLEAN=go clean
RMTARGZ=rm -rf *.gz
VERSION=1.0.2
RMMACAPP=rm -rf ptg.app
VERSION=1.0.3

# Build
build:
Expand Down Expand Up @@ -57,4 +58,5 @@ pkg-win:

pkg-macos:
fyne package -os darwin -src gui/ -icon pic/gopher.png -name ${BINARY} -appVersion $(VERSION)
tar czvf ${BINARY}-mac-gui.tar ./${BINARY}.app
tar czvf ${BINARY}-mac-gui.tar ./${BINARY}.app
$(RMMACAPP)

0 comments on commit 5a5cb8a

Please sign in to comment.