diff --git a/install.sh b/install.sh index 47956e0..0474a92 100644 --- a/install.sh +++ b/install.sh @@ -265,6 +265,7 @@ cd "$SCRIPT_DIR" export GOPATH=/tmp/gopath_sshpanel export GOCACHE=/tmp/gocache_sshpanel go mod download +go mod tidy go build -ldflags="-s -w" -o "$INSTALL_DIR/sshpanel" . info " Binary: $INSTALL_DIR/sshpanel" cp -r "$SCRIPT_DIR/admin/"* "$INSTALL_DIR/admin/" diff --git a/update.sh b/update.sh index e3fded3..0a2a81d 100644 --- a/update.sh +++ b/update.sh @@ -289,6 +289,7 @@ build_binary() { export GOPATH=/tmp/gopath_sshpanel export GOCACHE=/tmp/gocache_sshpanel go mod download + go mod tidy go build -ldflags="-s -w" -o /tmp/sshpanel_new . info " Build complete." }