diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 4cc627a..c551169 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -37,13 +37,12 @@ jobs: env: CGO_ENABLED: 1 - - name: Package as .app + - name: Package as .app in a .dmg run: | mv dist/macos/Picocrypt.app.zip . unzip -d Picocrypt.app Picocrypt.app.zip rm Picocrypt.app.zip mv src/Picocrypt Picocrypt.app/Contents/MacOS/Picocrypt - zip -rX Picocrypt.zip Picocrypt.app mkdir out cp -R Picocrypt.app out hdiutil create Picocrypt.dmg -volname Picocrypt -fs APFS -format UDZO -srcfolder out @@ -53,7 +52,7 @@ jobs: with: name: build-macos path: | - Picocrypt.zip + Picocrypt.dmg if-no-files-found: error compression-level: 9