Skip to content

Commit

Permalink
Bake releases as DMGs.
Browse files Browse the repository at this point in the history
  • Loading branch information
samkaufman committed Nov 30, 2023
1 parent ccbeac3 commit 535cf0c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ jobs:
- name: Select Xcode 15
run: sudo xcode-select -s '/Applications/Xcode_15.0.1.app/Contents/Developer'
- uses: actions/checkout@v2
- run: brew install coreutils gnu-sed nasm ninja meson patchutils
- run: brew install coreutils gnu-sed nasm ninja meson patchutils create-dmg
- name: Build
run: ./build.sh
- name: Compress app bundle
run: XZ_OPT=-9 tar cJf testbox/TES3MP.app.tar.xz testbox/TES3MP.app
- name: Save compressed app bundle as an artifact
- name: Save .dmg as an artifact
uses: actions/upload-artifact@v2
with:
name: TES3MP.app.tar.xz
path: testbox/TES3MP.app.tar.xz
name: release
path: "*.dmg"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
out
testbox
testbox
*.dmg
10 changes: 9 additions & 1 deletion 40-test-fixup-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,12 @@ cp out/src/TES3MP/AUTHORS.md testbox/OpenMW.app/Contents/Resources/
cp out/src/TES3MP/tes3mp-credits.md testbox/OpenMW.app/Contents/Resources/

# Rename OpenMW.app to TES3MP.app.
mv testbox/OpenMW.app testbox/TES3MP.app
mv testbox/OpenMW.app testbox/TES3MP.app

# Create a .dmg.
create-dmg --volname "TES3MP-$TES3MP_VERSION" \
--volicon testbox/TES3MP.app/Contents/Resources/TES3MP.icns \
--window-size 800 400 \
--icon "TES3MP.app" 200 190 \
--app-drop-link 600 185 \
TES3MP-$TES3MP_VERSION.dmg ./testbox

0 comments on commit 535cf0c

Please sign in to comment.