From fc68e6449ca2d687eb6516817d320acc33942808 Mon Sep 17 00:00:00 2001 From: hwchan Date: Sun, 28 Jun 2020 11:14:11 +0800 Subject: [PATCH] Ensure static linked binary --- pack.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pack.sh b/pack.sh index fb2fc02..ab9a6c8 100755 --- a/pack.sh +++ b/pack.sh @@ -1,7 +1,7 @@ #! /bin/bash set -x -go build +CGO_ENABLED=0 go build zip pingtunnel_linux64.zip pingtunnel GOOS=darwin GOARCH=amd64 go build @@ -24,4 +24,3 @@ zip pingtunnel_windows32.zip pingtunnel.exe GOOS=linux GOARCH=arm64 go build zip pingtunnel_arm64.zip pingtunnel -