Skip to content

Apply NL translation (#859) #557

Apply NL translation (#859)

Apply NL translation (#859) #557

Workflow file for this run

name: dev-desktop
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
# Which godot version to use for exporting
GODOT_VERSION: 4.3
# Which godot release to use for exporting. (stable/rc/beta/alpha)
GODOT_RELEASE: rc2
# Used in the editor config file name. Do not change this for patch releases.
GODOT_FEATURE_VERSION: 4.3
PROJECT_NAME: GodSVG
jobs:
export-windows:
name: Export GodSVG for Windows
runs-on: ubuntu-latest
env:
PLATFORM: "Windows Desktop"
EXTENSION: "exe"
BUILD_NAME: "windows-64bit"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Godot
uses: ./.github/actions/set-up-godot
- name: Set up WINE and rcedit for Windows export
run: |
# Download rcedit and install wine.
wget -q https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe
sudo apt update
sudo apt install -y --fix-missing wine64
# Move rcedit to different place.
mkdir -v -p ~/.local/share/rcedit
mv rcedit-x64.exe ~/.local/share/rcedit
# CD out of project directory so Godot doesn't load it.
cd ~
# Run Godot to generate editor config file.
godot --headless --quit
# Add wine and rcedit paths to Godot config.
echo 'export/windows/wine = "/usr/bin/wine64"' >> ~/.config/godot/editor_settings-${GODOT_FEATURE_VERSION}.tres
echo 'export/windows/rcedit = "/home/runner/.local/share/rcedit/rcedit-x64.exe"' >> ~/.config/godot/editor_settings-${GODOT_FEATURE_VERSION}.tres
- name: Export project
uses: ./.github/actions/godot-export
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_NAME }}
path: ~/build/${{ env.BUILD_NAME }}/
if-no-files-found: error
retention-days: 14
export-linux:
name: Export GodSVG for Linux
runs-on: ubuntu-latest
env:
PLATFORM: "Linux/X11"
EXTENSION: "x86_64"
BUILD_NAME: "linux-64bit"
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Godot
uses: ./.github/actions/set-up-godot
- name: Export project
uses: ./.github/actions/godot-export
- name: Make Linux export runnable
run: |
# Set run permission.
chmod +x ~/build/${BUILD_NAME}/${PROJECT_NAME}.x86_64
cd ~/build
tar zcvf ${BUILD_NAME}.tar.gz ${BUILD_NAME}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_NAME }}
path: ~/build/${{ env.BUILD_NAME }}.tar.gz
if-no-files-found: error
retention-days: 14