waveterm/scripthaus.md

19 lines
769 B
Markdown
Raw Normal View History

2022-08-25 06:33:50 +02:00
```bash
# @scripthaus command build
2023-02-23 23:50:58 +01:00
GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')"
go build -ldflags="$GO_LDFLAGS" -o bin/mshell-v0.2-darwin.amd64 main-mshell.go
2022-08-25 06:33:50 +02:00
```
```bash
# @scripthaus command fullbuild
2023-02-23 23:50:58 +01:00
GO_LDFLAGS="-s -w -X main.BuildTime=$(date +'%Y%m%d%H%M')"
2023-04-04 18:03:18 +02:00
go build -ldflags="$GO_LDFLAGS" -o ~/.mshell/mshell-v0.2 main-mshell.go
2023-02-23 23:50:58 +01:00
GOOS=linux GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o bin/mshell-v0.2-linux.amd64 main-mshell.go
GOOS=linux GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o bin/mshell-v0.2-linux.arm64 main-mshell.go
GOOS=darwin GOARCH=amd64 go build -ldflags="$GO_LDFLAGS" -o bin/mshell-v0.2-darwin.amd64 main-mshell.go
GOOS=darwin GOARCH=arm64 go build -ldflags="$GO_LDFLAGS" -o bin/mshell-v0.2-darwin.arm64 main-mshell.go
2022-08-25 06:33:50 +02:00
```