diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a7e312c..2c17938f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - platform: [ubuntu-latest] + platform: [macos-latest] go-version: [1.17] name: Build runs-on: ${{ matrix.platform }} @@ -32,7 +32,7 @@ jobs: - name: Install upx run: | - sudo apt install upx + brew install upx - name: Build run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a4fda183..95f6398b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release: strategy: matrix: - platform: [ubuntu-latest] + platform: [macos-latest] go-version: [1.17] name: Release runs-on: ${{ matrix.platform }} @@ -29,7 +29,7 @@ jobs: - name: Install upx run: | - sudo apt install upx + brew install upx - name: Build run: | diff --git a/build.sh b/build.sh index a197dcf1..3d412f1c 100644 --- a/build.sh +++ b/build.sh @@ -77,9 +77,7 @@ BUILD() { fi done cd build - for i in $(find . -type f -name "$appName-*"); do - upx -9 -o $i-upx $i - done + upx -9 ./* find . -type f -print0 | xargs -0 md5sum >md5.txt cat md5.txt cd ..