Skip to content

Commit

Permalink
fix: 兼容windows
Browse files Browse the repository at this point in the history
  • Loading branch information
onewesong committed Jul 27, 2023
1 parent 5f20e6f commit f6754cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ builds:
- env:
- CGO_ENABLED=0
main: ./cmd/goforward
# Default: [ 'darwin', 'linux', 'windows' ]
goos:
- linux
- darwin
- windows

archives:
- format: tar.gz
Expand Down
2 changes: 1 addition & 1 deletion cmd/goforward/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func runServer(cfg *config.Config) (err error) {
s := <-c
log.Info("agent get a signal %s\n", s.String())
switch s {
case syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGSTOP, syscall.SIGINT:
case syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT:
log.Info("agent exit")
return
case syscall.SIGHUP:
Expand Down
2 changes: 1 addition & 1 deletion internal/constants/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package constants

const VERSION = "0.1.1"
const VERSION = "0.1.2"

0 comments on commit f6754cb

Please sign in to comment.