mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-02 01:37:04 +08:00
update build.sh
This commit is contained in:
1 parent
cb1cc67e6b
commit
d66f8724e9
1 file changed
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
#/bash/sh
|
#/bash/sh
|
||||||
|
|
||||||
sudo apt-get install gcc-mingw-w64-i686
|
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
|
env GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -ldflags "-s -w -extldflags -static -extldflags -static" -buildmode=c-shared -o npc_sdk.dll cmd/npc/sdk.go
|
||||||
tar -czvf npc_sdk.tar.gz -xvf npc_sdk.dll npc_sdk.h
|
tar -czvf npc_sdk.tar.gz npc_sdk.dll npc_sdk.h
|
||||||
|
|
||||||
wget https://github.com/upx/upx/releases/download/v3.95/upx-3.95-amd64_linux.tar.xz
|
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
|
tar -xvf upx-3.95-amd64_linux.tar.xz
|
||||||
|
|||||||
Reference in new issue
Block a user