Skip to content

Commit

Permalink
📝 add doc, update Makefile to prepare releases
Browse files Browse the repository at this point in the history
Signed-off-by: BRO3886 <[email protected]>
  • Loading branch information
BRO3886 committed Dec 10, 2020
1 parent cd34f46 commit d8b417b
Show file tree
Hide file tree
Showing 5 changed files with 838 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,3 @@ vendor/

# Binaries folder
bin/
config.env
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ windows:
linux:
@echo "Building for linux"
go build -o ./bin/linux/katamari
@ cd bin/linux && ./katamari
cd bin/linux && ./katamari
all:
@echo "Building for every OS and Platform"
GOOS=windows GOARCH=386 go build -o ./bin/windows/katamari.exe
GOOS=linux GOARCH=386 go build -o ./bin/linux/katamari
GOOS=freebsd GOARCH=386 go build -o ./bin/freebsd/katamari-bsd
GOOS=darwin GOARCH=amd64 go build -o ./bin/mac/katamari-mac
GOOS=freebsd GOARCH=386 go build -o ./bin/freebsd/katamari
GOOS=darwin GOARCH=amd64 go build -o ./bin/mac/katamari
@echo "Zipping for release"
@tar -czvf bin/releases/katamari_linux.tar.gz bin/linux/katamari LICENSE
@tar -czvf bin/releases/katamari_win.tar.gz bin/windows/katamari.exe LICENSE
@tar -czvf bin/releases/katamari_mac_amd64.tar.gz bin/mac/katamari LICENSE
@tar -czvf bin/releases/katamari_bsd.tar.gz bin/freebsd/katamari LICENSE
run:
go run .
global:
go install .

# do not use
release:
gh release create $v './bin/windows/katamari.exe' './bin/linux/katamari' './bin/mac/katamari-mac'
gh release create $v ${find /bin/releases -type f -printf "%f "}
49 changes: 45 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,55 @@ module github.com/GDGVIT/katamari
go 1.15

require (
cloud.google.com/go v0.73.0 // indirect
code.gitea.io/sdk/gitea v0.13.2 // indirect
github.com/Azure/azure-storage-blob-go v0.12.0 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.9 // indirect
github.com/Azure/go-autorest/autorest/azure/auth v0.5.5 // indirect
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
github.com/Djarvur/go-err113 v0.1.0 // indirect
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
github.com/aws/aws-sdk-go v1.36.5 // indirect
github.com/daixiang0/gci v0.2.7 // indirect
github.com/golang/protobuf v1.4.3 // indirect
github.com/golangci/misspell v0.3.5 // indirect
github.com/golangci/revgrep v0.0.0-20180812185044-276a5c0a1039 // indirect
github.com/google/go-github/v32 v32.1.0
github.com/google/rpmpack v0.0.0-20201206194719-59e495f2b7e1 // indirect
github.com/goreleaser/fileglob v0.3.1 // indirect
github.com/goreleaser/goreleaser v0.149.0 // indirect
github.com/gostaticanalysis/analysisutil v0.6.1 // indirect
github.com/hashicorp/go-retryablehttp v0.6.8 // indirect
github.com/jirfag/go-printf-func-name v0.0.0-20200119135958-7558a9eaa5af // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/spf13/cobra v1.0.0
github.com/matoous/godox v0.0.0-20200801072554-4fb83dc2941e // indirect
github.com/polyfloyd/go-errorlint v0.0.0-20201127212506-19bd8db6546f // indirect
github.com/quasilyte/go-ruleguard v0.2.1 // indirect
github.com/quasilyte/regex/syntax v0.0.0-20200805063351-8f842688393c // indirect
github.com/sassoftware/go-rpmutils v0.1.1 // indirect
github.com/spf13/afero v1.5.1 // indirect
github.com/spf13/cobra v1.1.1
github.com/spf13/viper v1.7.1
github.com/stretchr/objx v0.3.0 // indirect
github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b // indirect
github.com/tetafro/godot v1.3.2 // indirect
github.com/timakin/bodyclose v0.0.0-20200424151742-cb6215831a94 // indirect
github.com/tomarrell/wrapcheck v0.0.0-20201130113247-1683564d9756 // indirect
github.com/ttacon/chalk v0.0.0-20160626202418-22c06c80ed31
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb // indirect
golang.org/x/oauth2 v0.0.0-20201207163604-931764155e3f
github.com/xanzy/go-gitlab v0.40.1 // indirect
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 // indirect
gocloud.dev v0.21.0 // indirect
golang.org/x/crypto v0.0.0-20201208171446-5f87f3452ae9 // indirect
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11 // indirect
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d // indirect
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2 // indirect
google.golang.org/appengine v1.6.7 // indirect
gopkg.in/yaml.v2 v2.3.0 // indirect
google.golang.org/genproto v0.0.0-20201209185603-f92720507ed4 // indirect
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
mvdan.cc/gofumpt v0.0.0-20201129102820-5c11c50e9475 // indirect
)
Loading

0 comments on commit d8b417b

Please sign in to comment.