Skip to content

Commit

Permalink
feat: add generic install when (#345)
Browse files Browse the repository at this point in the history
Co-authored-by: Rick <[email protected]>
  • Loading branch information
LinuxSuRen and LinuxSuRen authored Feb 4, 2023
1 parent 6c591a1 commit d4190d0
Show file tree
Hide file tree
Showing 5 changed files with 147 additions and 48 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ build: fmt test
export GOPROXY=https://goproxy.io
CGO_ENABLE=0 go build -ldflags "-w -s" -o bin/hd

build-linux: fmt lint
build-linux: fmt lint build-linux-no-check
build-linux-no-check:
export GOPROXY=https://goproxy.io
CGO_ENABLE=0 GOOS=linux go build -ldflags "-w -s" -o bin/linux/hd
upx bin/linux/hd
Expand Down
11 changes: 6 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ require (
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.9.0
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.1
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
gopkg.in/yaml.v3 v3.0.1
)

require github.com/creack/pty v1.1.17

require github.com/prometheus/client_golang v1.11.1 // indirect
require (
github.com/antonmedv/expr v1.11.1
github.com/creack/pty v1.1.17
)

require (
github.com/Microsoft/go-winio v0.4.16 // indirect
Expand Down
Loading

0 comments on commit d4190d0

Please sign in to comment.