Skip to content

Commit 86ba7a4

Browse files
committed
release task
1 parent e94aa51 commit 86ba7a4

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/lemonade
2+
/dist/
3+
/pkg/

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,16 @@ build:
55

66
install:
77
go install -ldflags "-X main.version=$(VERSION)"
8+
9+
release:
10+
gox --arch 'amd64 386' --os 'windows linux darwin' --output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}/{{.Dir}}" -ldflags "-X main.version=$(VERSION)"
11+
zip pkg/lemonade_windows_386.zip dist/lemonade_windows_386/lemonade.exe -j
12+
zip pkg/lemonade_windows_amd64.zip dist/lemonade_windows_amd64/lemonade.exe -j
13+
tar zcvf pkg/lemonade_linux_386.tar.gz -C dist/lemonade_linux_386/ lemonade
14+
tar zcvf pkg/lemonade_linux_amd64.tar.gz -C dist/lemonade_linux_amd64/ lemonade
15+
tar zcvf pkg/lemonade_darwin_386.tar.gz -C dist/lemonade_darwin_386/ lemonade
16+
tar zcvf pkg/lemonade_darwin_amd64.tar.gz -C dist/lemonade_darwin_amd64/ lemonade
17+
18+
clean:
19+
rm -rf dist/
20+
rm -f pkg/*.tar.gz pkg/*.zip

pkg/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)