2022-08-25 06:33:50 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
# @scripthaus command build
|
2022-10-17 08:46:59 +02:00
|
|
|
go build -ldflags="-s -w" -o /Users/mike/.mshell/mshell-v0.2 main-mshell.go
|
2022-08-25 06:33:50 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# @scripthaus command fullbuild
|
2022-10-17 08:46:59 +02:00
|
|
|
go build -ldflags="-s -w" -o /Users/mike/.mshell/mshell-v0.2 main-mshell.go
|
|
|
|
GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell-v0.2-linux.amd64 main-mshell.go
|
|
|
|
GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell-v0.2-linux.arm64 main-mshell.go
|
|
|
|
GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell-v0.2-darwin.amd64 main-mshell.go
|
|
|
|
GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o /opt/mshell/bin/mshell-v0.2-darwin.arm64 main-mshell.go
|
2022-08-25 06:33:50 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
|