Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit

Permalink
update presets for mac and open editor for all three
Browse files Browse the repository at this point in the history
Marc Platt authored and Marc Platt committed Jan 14, 2025
1 parent 6639201 commit dbc9637
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -184,9 +184,13 @@ jobs:
- name: Export build (Unix)
if: matrix.build != 'windows'
shell: bash
run: |
name="${{fromJSON('{"windows": "Windows", "macos": "Mac", "linux": "Linux"}')[matrix.build] }}"
godot --path "./cusf_launcher/" --headless --export-release "$name" "${{ matrix.target-bin }}" --verbose 2>&1 | tee build.log
# Create build directory for macOS or Linux
mkdir -p "cusf_launcher/build/${{ matrix.build }}"
# For macOS, place final .dmg in that build folder
godot --path "./cusf_launcher/" --headless --export-release "$name" "cusf_launcher/build/${{ matrix.build }}/${{ matrix.target-bin }}" --verbose 2>&1 | tee build.log
env:
GODOT_MACOS_NOTARIZATION_API_KEY_ID: ${{ secrets.GODOT_MACOS_NOTARIZATION_API_KEY_ID }}
GODOT_MACOS_NOTARIZATION_API_KEY: ./notarization_api_key.p8
@@ -209,21 +213,22 @@ jobs:
with:
name: cusf_launcher_linux
if-no-files-found: error
path: cusf_launcher/${{ matrix.target-bin }}
path: cusf_launcher/build/linux/cusf_launcher.x86_64

- name: Upload build (macOS)
if: matrix.build == 'macos'
uses: actions/upload-artifact@v4
with:
name: cusf_launcher_macos
if-no-files-found: error
path: cusf_launcher/${{ matrix.target-bin }}
path: cusf_launcher/build/macos/cusf_launcher.dmg

- name: Wait for notarization to finish
if: ${{ matrix.build == 'macos' }}
run: |
# Extract the request UUID from build.log
request_id=$(grep 'Notarization request UUID' build.log | rev | cut -d ' ' -f 1 | rev | tr -d '"')
xcrun notarytool wait $request_id \
--issuer ${{ secrets.GODOT_MACOS_NOTARIZATION_API_UUID }} \
--key-id ${{ secrets.GODOT_MACOS_NOTARIZATION_API_KEY_ID }} \
--key ./cusf_launcher/notarization_api_key.p8
--key ./cusf_launcher/notarization_api_key.p8
4 changes: 2 additions & 2 deletions cusf_launcher/export_presets.cfg
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ custom_features=""
export_filter="all_resources"
include_filter="addons/*"
exclude_filter=""
export_path=""
export_path="res://build/macos/cusf_launcher.dmg"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
@@ -58,7 +58,7 @@ script_export_mode=2

[preset.1.options]

export/distribution_type=1
export/distribution_type=2
binary_format/architecture="universal"
custom_template/debug=""
custom_template/release=""

0 comments on commit dbc9637

Please sign in to comment.