mirror of https://github.com/ehang-io/nps
add sudo in apt-get
parent
391fdbd920
commit
34fcd15101
8
build.sh
8
build.sh
|
@ -1,5 +1,8 @@
|
|||
#/bash/sh
|
||||
|
||||
sudo apt-get install gcc-mingw-w64-i686
|
||||
env GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -buildmode=c-shared -o npc_sdk.dll cmd/npc/sdk.go
|
||||
tar -czvf npc_sdk.tar.gz -xvf npc_sdk.dll npc_sdk.h
|
||||
|
||||
wget https://github.com/upx/upx/releases/download/v3.95/upx-3.95-amd64_linux.tar.xz
|
||||
tar -xvf upx-3.95-amd64_linux.tar.xz
|
||||
|
@ -173,8 +176,3 @@ docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f
|
|||
docker buildx create --use --name mybuilder
|
||||
docker buildx build --tag ffdfgdfg/nps:$VERSION --output type=image,push=true --file Dockerfile.nps --platform=linux/amd64,linux/arm64,linux/386,linux/arm .
|
||||
docker buildx build --tag ffdfgdfg/npc:$VERSION --output type=image,push=true --file Dockerfile.npc --platform=linux/amd64,linux/arm64,linux/386,linux/arm .
|
||||
|
||||
|
||||
apt-get install gcc-mingw-w64-i686
|
||||
env GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -buildmode=c-shared -o npc_sdk.dll cmd/npc/sdk.go
|
||||
tar -czvf npc_sdk.tar.gz -xvf npc_sdk.dll npc_sdk.h
|
Loading…
Reference in New Issue