From 7addaca36e7bc33f32b011e608bd3b6adbe3dcf2 Mon Sep 17 00:00:00 2001 From: mogumc Date: Wed, 27 May 2026 20:18:23 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=89=93=E5=8C=85=20macOS=20=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E4=BA=A7=E7=89=A9=E4=B8=BA=20DMG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab8fef0..2c4cd2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -210,6 +210,12 @@ jobs: -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-darwin-amd64 + - name: Package amd64 + run: | + cd build/bin + hdiutil create -volname "WebHelper" -srcfolder webhelper-darwin-amd64.app \ + -ov -format UDZO -fs HFS+ webhelper-darwin-amd64.dmg + - name: Build arm64 env: CGO_ENABLED: 1 @@ -221,12 +227,19 @@ jobs: -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-darwin-arm64 + - name: Package arm64 + run: | + cd build/bin + hdiutil create -volname "WebHelper" -srcfolder webhelper-darwin-arm64.app \ + -ov -format UDZO -fs HFS+ webhelper-darwin-arm64.dmg + - name: Upload artifacts uses: actions/upload-artifact@v4 with: + name: webhelper-darwin path: | - build/bin/webhelper-darwin-amd64 - build/bin/webhelper-darwin-arm64 + build/bin/webhelper-darwin-amd64.dmg + build/bin/webhelper-darwin-arm64.dmg release: needs: [build-windows, build-linux, build-linux-new, build-macos]