-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
27 lines (23 loc) · 855 Bytes
/
justfile
File metadata and controls
27 lines (23 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
dev:
@pnpm dev
pub:
npm config set registry https://registry.npmjs.org/
pnpm publish
npm config set registry https://registry.npm.taobao.org/
bang:
@GOOS=darwin GOARCH=amd64 go build -o ./bin/bang ./main.go
cd ./bin && tar -zcvf ../bin/bang-darwin-amd64.tar.gz ./bang
@GOOS=linux GOARCH=amd64 go build -o ./bin/bang ./main.go
cd ./bin && tar -zcvf ../bin/bang-linux-amd64.tar.gz ./bang
@GOOS=windows GOARCH=amd64 go build -o ./bin/bang.exe ./main.go
cd ./bin && tar -zcvf ../bin/bang-windows-amd64.tar.gz ./bang.exe
@rm -rf ./bin/bang ./bin/bang.exe
upload:
# sh
gh release upload $(go run . version) ./bin/bang-darwin-amd64.tar.gz ./bin/bang-linux-amd64.tar.gz ./bin/bang-windows-amd64.tar.gz
release: bang
# sh
@go run . log > qwe
cat qwe | gh release create $(go run . version) -F -
@just upload
@rm -rf qwe