mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
use cgo
This commit is contained in:
parent
33f2532ae8
commit
8f7f259132
@ -76,7 +76,7 @@ function buildWaveShell {
|
|||||||
}
|
}
|
||||||
function buildWaveSrv {
|
function buildWaveSrv {
|
||||||
# adds -extldflags=-static, *only* on linux (macos does not support fully static binaries) to avoid a glibc dependency
|
# adds -extldflags=-static, *only* on linux (macos does not support fully static binaries) to avoid a glibc dependency
|
||||||
(cd wavesrv; CGO_ENABLED=1 GOARCH=$1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-linkmode 'external' -extldflags=-static $GO_LDFLAGS -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv.$1 ./cmd)
|
(cd wavesrv; CGO_ENABLED=1 GOARCH=$1 go build -tags "osusergo,netcgo,sqlite_omit_load_extension" -ldflags "-linkmode 'external' -extldflags=-static $GO_LDFLAGS -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv.$1 ./cmd)
|
||||||
}
|
}
|
||||||
buildWaveShell darwin amd64
|
buildWaveShell darwin amd64
|
||||||
buildWaveShell darwin arm64
|
buildWaveShell darwin arm64
|
||||||
@ -90,7 +90,7 @@ yarn run electron-builder -c electron-builder.config.js -l -p never
|
|||||||
# @scripthaus command build-wavesrv
|
# @scripthaus command build-wavesrv
|
||||||
WAVESRV_VERSION=$(node -e 'console.log(require("./version.js"))')
|
WAVESRV_VERSION=$(node -e 'console.log(require("./version.js"))')
|
||||||
cd wavesrv
|
cd wavesrv
|
||||||
CGO_ENABLED=1 go build -tags "osusergo,netgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M') -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv ./cmd
|
CGO_ENABLED=1 go build -tags "osusergo,netcgo,sqlite_omit_load_extension" -ldflags "-X main.BuildTime=$(date +'%Y%m%d%H%M') -X main.WaveVersion=$WAVESRV_VERSION" -o ../bin/wavesrv ./cmd
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user