From 5f94303c5c9753b8cbfa4f6f484686f20fcad3d1 Mon Sep 17 00:00:00 2001 From: Thomas Wu <62056970+TakumiBC@users.noreply.github.com> Date: Mon, 4 May 2026 18:00:25 +0800 Subject: [PATCH 1/2] Add DMG creation --- .github/workflows/main.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c287c82d6..01f942c63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,13 +61,19 @@ jobs: - name: create zip run: ditto -c -k --sequesterRsrc --keepParent archive/ClashX.xcarchive/Products/Applications/ClashX\ Meta.app "ClashX Meta.zip" + - name: create dmg + run: | + npm install --global create-dmg + create-dmg --overwrite --no-version-in-filename --no-code-sign --dmg-title "ClashX Meta" "archive/ClashX.xcarchive/Products/Applications/ClashX Meta.app" . - name: upload Artifact uses: actions/upload-artifact@v4 if: "!startsWith(github.ref, 'refs/tags/')" with: - name: "ClashX Meta.zip" - path: "*.zip" + name: "ClashX Meta" + path: | + "*.zip" + "*.dmg" - name: load sparkle-repo uses: actions/checkout@v4 @@ -113,4 +119,5 @@ jobs: generate_release_notes: true files: | ClashX Meta.zip + ClashX Meta.dmg From e00a2c8100a5e98b0e4a8b991851226bcba4c692 Mon Sep 17 00:00:00 2001 From: Thomas Wu <62056970+TakumiBC@users.noreply.github.com> Date: Mon, 4 May 2026 18:16:35 +0800 Subject: [PATCH 2/2] Fix syntax in main.yml for file paths --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01f942c63..f09a3e7c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -72,8 +72,8 @@ jobs: with: name: "ClashX Meta" path: | - "*.zip" - "*.dmg" + *.zip + *.dmg - name: load sparkle-repo uses: actions/checkout@v4