1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Update Mac export workflow (#319)

This commit is contained in:
Xenofon Konitsas 2020-08-26 14:51:53 +03:00 committed by GitHub
parent 60c5ec9ad5
commit d253d649f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 8 deletions

View file

@ -69,22 +69,48 @@ jobs:
export-mac: export-mac:
name: Mac Export 🍎 name: Mac Export 🍎
runs-on: ubuntu-latest runs-on: macos-latest
container:
image: docker://barichello/godot-ci:3.2.2
steps: steps:
- name: Checkout 🛎️ - name: Checkout 🛎️
uses: actions/checkout@v1 uses: actions/checkout@v1
with: with:
submodules: true submodules: true
- name: Setup 💻 - name: Setup environment 🔧
run: | run: |
mkdir -v -p build/mac ~/.local/share/godot/templates export GODOT_VERSION=3.2.2
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable export EXPORT_NAME=Pixelorama
- name: Download and extract export templates 💾
run: |
mkdir -v -p ~/.local/share/godot/templates/${GODOT_VERSION}.stable
curl -O https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-stable_export_templates.tpz
unzip -a Godot_v${GODOT_VERSION}-stable_export_templates.tpz
mv ./templates/* ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name: Download Godot headless binary 💾
run: |
curl -O https://huskee.cf/files/Godot_v${GODOT_VERSION}-stable_mac_headless.64.zip
unzip -a Godot_v${GODOT_VERSION}-stable_mac_headless.64.zip
- name: Setup 💻
run: mkdir -v -p ./build/mac
- name: Mac Build 🔧 - name: Mac Build 🔧
run: godot -v --export "Mac OSX" ./build/mac/$EXPORT_NAME.zip run: |
chown runner ./Godot
chmod +x ./Godot
./Godot -v --export "Mac OSX" ./build/mac/Pixelorama.zip
- name: Make application executable 🔧
run: |
unzip -a ./build/mac/Pixelorama.zip -d ./build/mac
chmod +x ./build/mac/Pixelorama.app/Contents/MacOS/Pixelorama
rm ./build/mac/Pixelorama.zip
- name: Fix application icon 🖼
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 folder 📁
run: |
cp -R ./pixelorama ./build/mac
rm ./build/mac/pixelorama/.gdignore
- name: Create DMG archive 🔧
run: hdiutil create -size 70m -srcfolder ./build/mac -volname Pixelorama ./build/mac/Pixelorama.dmg
- name: Upload Artifact 🚀 - name: Upload Artifact 🚀
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: Mac name: Mac
path: ./build/mac/ path: ./build/mac/Pixelorama.dmg

2
.gitignore vendored
View file

@ -14,3 +14,5 @@ mono_crash.*.json
.directory .directory
*~ *~
#Visual Studio Code ignores
.vscode/