diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5108954f..1b1da93b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -102,6 +102,7 @@ jobs: make artifacts-macos - name: Push to Station (@Silicon Valley) + if: matrix.platform == 'ubuntu-latest' uses: nogsantos/scp-deploy@master with: src: ./dist/release/* @@ -112,6 +113,7 @@ jobs: key: ${{ secrets.SSH_KEY }} - name: Distribution + if: matrix.platform == 'ubuntu-latest' uses: appleboy/ssh-action@master with: host: ${{ secrets.SSH_HOST }} diff --git a/Makefile b/Makefile index bb46e980..7758732d 100644 --- a/Makefile +++ b/Makefile @@ -293,7 +293,7 @@ artifacts-macos: clean # 制品 mkdir -p dist - CGO_ENABLED=1 CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -o dist/yao-${VERSION}-darwin-amd64 + CGO_ENABLED=1 CGO_LDFLAGS="-static" CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -v -o dist/yao-${VERSION}-darwin-amd64 CGO_ENABLED=1 CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -v -o dist/yao-${VERSION}-darwin-arm64 mkdir -p dist/release diff --git a/share/const.go b/share/const.go index b29c6887..1d855dd7 100644 --- a/share/const.go +++ b/share/const.go @@ -4,7 +4,7 @@ package share // session -> freeport fix bug // 更新制品目录 -> ui/downloads // Arm64 制品 -> arm build test -// MacOS 制品 -> debug 6 +// MacOS 制品 -> debug 7 // VERSION 版本号 const VERSION = "0.9.1"