Skip to content

Commit

Permalink
add dmg installer to macos_intel_bundle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kiahamedi authored Sep 29, 2024
1 parent 809faa7 commit 735fee4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/macos_intel_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,14 @@ jobs:
find persepolis/persepolis -type f -exec perl -i -pe 's/persepolis.scripts/scripts/g' '{}' \;
find persepolis/persepolis -type f -exec perl -i -pe 's/persepolis.gui/gui/g' '{}' \;
pyinstaller app.spec
- name: Add Prerequisites
run: |
[ -d './dist' ] && cp ffmpeg 'dist/Persepolis Download Manager.app/Contents/MacOS/'
[ -d './Persepolis Download Manager.app' ] && [ -d './dist' ] && rm -rf 'Persepolis Download Manager.app'
[ -d './dist' ] && mv 'dist/Persepolis Download Manager.app' .
- name: Build DMG
run: |
mkdir -p dist/dmg
mv 'Persepolis Download Manager.app' dist/dmg
test -f "dist/Persepolis Download Manager.dmg" && rm "dist/Persepolis Download Manager.dmg"
create-dmg --volname "Persepolis Download Manager" --volicon "icon.icns" --window-pos 200 120 --window-size 600 300 --icon-size 100 --icon "Persepolis Download Manager.app" 120 120 --hide-extension "Persepolis Download Manager.app" --app-drop-link 425 120 "Persepolis Download Manager.dmg" "dist/dmg/"

0 comments on commit 735fee4

Please sign in to comment.