Skip to content

Commit

Permalink
GitHub CI: Add Ad-Hoc code signing for macOS dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Aug 15, 2024
1 parent 376f5e6 commit 736aee8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,16 @@ jobs:
run: |
mm3d_version=$(git describe|sed 's/^v\([0-9]\)/\1/')
mm3d_longname="Maverick Model 3D ${mm3d_version}"
# Sign .app
rmdir "Maverick Model 3D.app/Contents/PlugIns/mm3d/1.3"
codesign --deep --force --sign - "Maverick Model 3D.app"
mkdir "Maverick Model 3D.app/Contents/PlugIns/mm3d/1.3"
# Create .dmg
mkdir "${mm3d_longname}"
mv "Maverick Model 3D.app" "${mm3d_longname}/."
hdiutil create -fs HFS+ -srcfolder "${mm3d_longname}" mm3d-${mm3d_version}.dmg
# Sign .dmg
codesign -s - mm3d-${mm3d_version}.dmg
- uses: actions/upload-artifact@v4
with:
name: MacOS App
Expand Down

0 comments on commit 736aee8

Please sign in to comment.