Skip to content

Commit

Permalink
Build for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jspahrsummers committed Jun 25, 2024
1 parent f4e991d commit 65a90f3
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ concurrency:

jobs:
build:
strategy:
matrix:
config:
- preset: macOS
artifact: mac.zip
channel: mac
- preset: Windows
artifact: Windows
channel: windows

runs-on: ubuntu-latest

steps:
Expand All @@ -31,14 +41,14 @@ jobs:
- name: Prepare export templates
run: |
mkdir -p ~/.local/share/godot/export_templates/4.2.2.stable
mv build/export_templates/*.zip ~/.local/share/godot/export_templates/4.2.2.stable/
mv build/export_templates/* ~/.local/share/godot/export_templates/4.2.2.stable/
- name: Export macOS build
- name: Export ${{ matrix.config.preset }} build
run: |
"$RUNNER_TEMP/godot" --headless --export-release "macOS"
"$RUNNER_TEMP/godot" --headless --export-release "${{ matrix.config.preset }}"
- name: Push to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }}
run: |
"$RUNNER_TEMP/butler" push build/mac.zip jspahrsummers/Merc:mac
"$RUNNER_TEMP/butler" push "build/${{ matrix.config.artifact }}" "jspahrsummers/Merc:${{ matrix.config.channel }}"
63 changes: 63 additions & 0 deletions export_presets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,66 @@ progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
progressive_web_app/background_color=Color(0, 0, 0, 1)

[preset.2]

name="Windows"
platform="Windows Desktop"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path="build/Windows/Merc.exe"
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false

[preset.2.options]

custom_template/debug=""
custom_template/release=""
debug/export_console_wrapper=0
binary_format/embed_pck=false
texture_format/bptc=true
texture_format/s3tc=true
texture_format/etc=false
texture_format/etc2=false
binary_format/architecture="x86_64"
codesign/enable=false
codesign/timestamp=true
codesign/timestamp_server_url=""
codesign/digest_algorithm=1
codesign/description=""
codesign/custom_options=PackedStringArray()
application/modify_resources=false
application/icon=""
application/console_wrapper_icon=""
application/icon_interpolation=4
application/file_version=""
application/product_version=""
application/company_name=""
application/product_name=""
application/file_description=""
application/copyright=""
application/trademarks=""
application/export_angle=0
ssh_remote_deploy/enabled=false
ssh_remote_deploy/host="user@host_ip"
ssh_remote_deploy/port="22"
ssh_remote_deploy/extra_args_ssh=""
ssh_remote_deploy/extra_args_scp=""
ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}'
$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}'
$trigger = New-ScheduledTaskTrigger -Once -At 00:00
$settings = New-ScheduledTaskSettingsSet
$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings
Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true
Start-ScheduledTask -TaskName godot_remote_debug
while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 }
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue"
ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue
Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue
Remove-Item -Recurse -Force '{temp_dir}'"

0 comments on commit 65a90f3

Please sign in to comment.