Skip to content

Commit

Permalink
Ad-hoc sign Mac builds (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
OverloadedOrama authored Dec 1, 2021
1 parent f3d696e commit 0259f75
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dev-desktop-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ jobs:
printf '%s\n' 'Before running Pixelorama for the first time, make sure to open a Terminal and run:' '' 'xattr -cr /path/to/Pixelorama.app' '' "If you don't, macOS will not let you run Pixelorama and claim it's damaged." "For more info, check disable-gatekeeper.github.io" > ./build/mac/ReadMeFirst.txt
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/MacOS
rm ./build/mac/Pixelorama.app/Contents/MacOS/pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
- name: Create DMG archive 🔧
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
- name: Upload Artifact 🚀
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,10 @@ jobs:
run: sips -s format icns ./build/mac/Pixelorama.app/Contents/Resources/icon.icns --out ./build/mac/Pixelorama.app/Contents/Resources/icon.icns
- name: Copy pixelorama_data folder 📁
run: |
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/MacOS
rm ./build/mac/Pixelorama.app/Contents/MacOS/pixelorama_data/.gdignore
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/Resources
rm ./build/mac/Pixelorama.app/Contents/Resources/pixelorama_data/.gdignore
- name: Ad-hoc signing ✍️
run: codesign -s - --force --deep ./build/mac/Pixelorama.app
- name: Create DMG archive 🔧
run: hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
- name: Upload Release Asset 🚀
Expand Down

0 comments on commit 0259f75

Please sign in to comment.