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:
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