Update build-macos.yml

This commit is contained in:
Evan Su 2024-06-23 23:01:09 -04:00 committed by GitHub
parent de4ceb8094
commit 969ca645e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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