Skip to content

Commit

Permalink
Release initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
jijeshmohan committed Apr 27, 2023
1 parent 151f2b3 commit fa5f20b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ BIN_NAME=dago

clean:
@rm -rf ./tmp
@rm -rf ./out
@mkdir ./tmp

packages:
Expand All @@ -25,3 +26,14 @@ vet:

lint:
@golangci-lint run

build-all: clean test
GOOS=windows GOARCH=amd64 go build -o ./out/dago_windows_amd64.exe ./cmd/dago/*.go
GOOS=windows GOARCH=386 go build -o ./out/dago_windows_386.exe ./cmd/dago/*.go
GOOS=darwin GOARCH=amd64 go build -o ./out/dago_darwin_amd64 ./cmd/dago/*.go
GOOS=darwin GOARCH=arm64 go build -o ./out/dago_darwin_arm64 ./cmd/dago/*.go
GOOS=linux GOARCH=amd64 go build -o ./out/dago_linux_amd64 ./cmd/dago/*.go
GOOS=linux GOARCH=386 go build -o ./out/dago_linux_386 ./cmd/dago/*.go

release: build-all
$(shell ./scripts/zip_output.sh)
2 changes: 1 addition & 1 deletion cmd/dago/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

var (
version = "development"
version = "0.0.1"
)

func main() {
Expand Down
3 changes: 3 additions & 0 deletions scripts/zip_output.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
for file in ./out/*; do
tar -czf "${file}.tar.gz" "$file"
done

0 comments on commit fa5f20b

Please sign in to comment.