Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

feat: use create-dmg to generate prettier dmg (#1260)

ErBW_s7b81e33a345d
diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml
index 5fc081cd..19b873b4 100644
--- a/.github/workflows/pr.yaml
+++ b/.github/workflows/pr.yaml
@@ -247,10 +247,11 @@
- run: flutter build macos --release
- name: Create DMG
run: |
- mkdir -p build/dist
- cp -a build/macos/Build/Products/Release/Kazumi.app build/dist/
- ln -s /Applications build/dist/Applications
- hdiutil create -format UDZO -srcfolder build/dist -volname Kazumi Kazumi_macos_canary.dmg
+ npm install --global create-dmg
+ create-dmg build/macos/Build/Products/Release/Kazumi.app
+ continue-on-error: true
+ - name: Rename DMG
+ run: mv Kazumi*.dmg Kazumi_macos_canary.dmg
- name: Upload MacOS build
uses: actions/upload-artifact@v4
with:
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index caf902f3..cd8df118 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -325,10 +325,11 @@
- run: flutter build macos --release
- name: Create DMG
run: |
- mkdir -p build/dist
- cp -a build/macos/Build/Products/Release/Kazumi.app build/dist/
- ln -s /Applications build/dist/Applications
- hdiutil create -format UDZO -srcfolder build/dist -volname Kazumi Kazumi_macos_${{ env.tag }}.dmg
+ npm install --global create-dmg
+ create-dmg build/macos/Build/Products/Release/Kazumi.app
+ continue-on-error: true
+ - name: Rename DMG
+ run: mv Kazumi*.dmg Kazumi_macos_${{ env.tag }}.dmg
- name: Upload MacOS build
uses: actions/upload-artifact@v4
with: