2020-07-23 15:00:19 +00:00
name : "dev-desktop-builds"
2020-06-25 15:18:20 +00:00
on :
push :
branches : [ master ]
pull_request :
branches : [ master ]
2020-08-09 21:02:52 +00:00
paths-ignore :
- "Translations/*"
- "installer/*.pot"
- "installer/po/*"
2020-06-25 15:18:20 +00:00
env :
2021-11-09 14:45:31 +00:00
GODOT_VERSION : 3.4
GODOT_VERSION_MAC : 3.4
2020-06-25 15:18:20 +00:00
EXPORT_NAME : Pixelorama
jobs :
export-windows :
name : Windows Export 🗔
runs-on : ubuntu-latest
container :
2021-11-09 14:45:31 +00:00
image : docker://barichello/godot-ci:3.4
2020-06-25 15:18:20 +00:00
steps :
2020-09-05 01:11:03 +00:00
- name : Setup WINE and rcedit 🍷
run : |
dpkg --add-architecture i386 && apt-get update && apt-get install -y wine-stable && apt-get install -y wine32
chown root:root -R ~
wget https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe
mkdir -v -p ~/.local/share/rcedit
mv rcedit-x64.exe ~/.local/share/rcedit
godot -q
echo 'export/windows/wine = "/usr/bin/wine"' >> ~/.config/godot/editor_settings-3.tres
echo 'export/windows/rcedit = "/github/home/.local/share/rcedit/rcedit-x64.exe"' >> ~/.config/godot/editor_settings-3.tres
2020-06-25 15:18:20 +00:00
- name : Checkout 🛎️
uses : actions/checkout@v1
with :
submodules : true
- name : Setup 💻
run : |
mkdir -v -p build/windows-64bit ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
- name : Windows Build 🔧
run : godot -v --export "Windows Desktop 64-bit" ./build/windows-64bit/$EXPORT_NAME.exe
2020-08-29 13:34:52 +00:00
- name : Copy pixelorama_data folder 📁
2020-06-25 15:18:20 +00:00
run : |
2020-08-29 13:34:52 +00:00
cp -R ./pixelorama_data ./build/windows-64bit
rm ./build/windows-64bit/pixelorama_data/.gdignore
2020-06-25 15:18:20 +00:00
- name : Upload Artifact 🚀
2020-11-16 18:54:39 +00:00
uses : actions/upload-artifact@v2
2020-06-25 15:18:20 +00:00
with :
name : Windows-64bit
path : ./build/windows-64bit/
2020-10-16 11:00:25 +00:00
retention-days : 14
2020-06-25 15:18:20 +00:00
export-linux :
name : Linux Export 🐧
runs-on : ubuntu-latest
container :
2021-11-09 14:45:31 +00:00
image : docker://barichello/godot-ci:3.4
2020-06-25 15:18:20 +00:00
steps :
- name : Checkout 🛎️
uses : actions/checkout@v1
with :
submodules : true
- name : Setup 💻
run : |
2021-11-18 23:17:35 +00:00
mkdir -v -p build/linux-64bit build/linux-rpi4 ~/.local/share/godot/templates
2020-06-25 15:18:20 +00:00
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
2021-11-18 23:17:35 +00:00
- name : Download Unofficial Godot Raspberry Pi 4 Builds 🍇
run : |
wget https://github.com/hiulit/Unofficial-Godot-Engine-Raspberry-Pi/releases/download/v1.7.0/godot_${GODOT_VERSION}-stable_rpi4.zip
unzip -a godot_${GODOT_VERSION}-stable_rpi4.zip
2020-06-25 15:18:20 +00:00
- name : Linux Build 🔧
2021-11-18 23:17:35 +00:00
run : |
godot -v --export "Linux/X11 64-bit" ./build/linux-64bit/$EXPORT_NAME.x86_64
godot -v --export "Raspberry Pi 4" ./build/linux-rpi4/$EXPORT_NAME.rpi4
2020-08-29 17:34:43 +00:00
- name : Give execute permission ☑️
2021-11-18 23:17:35 +00:00
run : |
2020-08-29 17:34:43 +00:00
chmod +x ./build/linux-64bit/$EXPORT_NAME.x86_64
2021-11-18 23:17:35 +00:00
chmod +x ./build/linux-rpi4/$EXPORT_NAME.rpi4
2020-08-29 13:34:52 +00:00
- name : Copy pixelorama_data folder 📁
2020-06-25 15:18:20 +00:00
run : |
2020-08-29 13:34:52 +00:00
cp -R ./pixelorama_data ./build/linux-64bit
rm ./build/linux-64bit/pixelorama_data/.gdignore
2020-08-29 17:32:14 +00:00
- name : Create tar.gz archive 🗜️
run : |
cd build
tar zcvf linux-64bit.tar.gz linux-64bit
2021-11-18 23:17:35 +00:00
tar zcvf linux-rpi4.tar.gz linux-rpi4
2020-06-25 15:18:20 +00:00
- name : Upload Artifact 🚀
2020-11-16 18:54:39 +00:00
uses : actions/upload-artifact@v2
2020-06-25 15:18:20 +00:00
with :
name : Linux-64bit
2020-08-29 17:32:14 +00:00
path : ./build/linux-64bit.tar.gz
2020-10-16 11:00:25 +00:00
retention-days : 14
2021-11-18 23:17:35 +00:00
- name : Upload Raspberry Pi 4 Artifact 🚀
uses : actions/upload-artifact@v2
with :
name : Linux-rpi4
path : ./build/linux-rpi4.tar.gz
retention-days : 14
2020-06-25 15:18:20 +00:00
export-mac :
name : Mac Export 🍎
2020-08-26 11:51:53 +00:00
runs-on : macos-latest
2020-06-25 15:18:20 +00:00
steps :
- name : Checkout 🛎️
uses : actions/checkout@v1
with :
submodules : true
2020-08-26 11:51:53 +00:00
- name : Setup environment 🔧
2020-06-25 15:18:20 +00:00
run : |
2021-11-18 23:17:35 +00:00
export GODOT_VERSION=${GODOT_VERSION_MAC}
2020-08-26 11:51:53 +00:00
export EXPORT_NAME=Pixelorama
- name : Download and extract export templates 💾
run : |
2020-09-20 15:08:41 +00:00
mkdir -v -p ~/.local/share/godot/templates/${GODOT_VERSION_MAC}.stable
curl -O https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION_MAC}/Godot_v${GODOT_VERSION_MAC}-stable_export_templates.tpz
unzip -a Godot_v${GODOT_VERSION_MAC}-stable_export_templates.tpz
mv ./templates/* ~/.local/share/godot/templates/${GODOT_VERSION_MAC}.stable
2020-08-29 18:56:25 +00:00
- name : Download Godot headless binary 🤖
2020-08-26 11:51:53 +00:00
run : |
2021-11-18 23:17:35 +00:00
wget https://github.com/huskeee/godot-headless-mac/releases/download/${GODOT_VERSION_MAC}-stable/Godot_v${GODOT_VERSION_MAC}-stable_mac_headless.64.zip
2021-04-29 19:42:10 +00:00
unzip -a Godot_v${GODOT_VERSION_MAC}-stable_mac_headless.64.zip
2020-08-26 11:51:53 +00:00
- name : Setup 💻
run : mkdir -v -p ./build/mac
2020-06-25 15:18:20 +00:00
- name : Mac Build 🔧
2020-08-26 11:51:53 +00:00
run : |
2021-11-09 14:45:31 +00:00
chown runner ./bin/Godot
chmod +x ./bin/Godot
./bin/Godot -v --export "Mac OSX" ./build/mac/Pixelorama.zip
2020-08-26 11:51:53 +00:00
- 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
2021-10-01 10:26:59 +00:00
- name : Add readme text
run : |
printf '%s\n' 'Before running Pixelorama for the first time, make sure to open a Terminal and run:' '' 'xattr -cr /path/to/Pixelorama.app' '' "If you don't, macOS will not let you run Pixelorama and claim it's damaged." "For more info, check disable-gatekeeper.github.io" > ./build/mac/ReadMeFirst.txt
2020-08-29 13:34:52 +00:00
- name : Copy pixelorama_data folder 📁
2020-08-26 11:51:53 +00:00
run : |
2020-08-29 18:56:25 +00:00
cp -R ./pixelorama_data ./build/mac/Pixelorama.app/Contents/MacOS
rm ./build/mac/Pixelorama.app/Contents/MacOS/pixelorama_data/.gdignore
2020-08-26 11:51:53 +00:00
- name : Create DMG archive 🔧
2021-11-03 01:29:51 +00:00
run : hdiutil create -srcfolder ./build/mac -fs HFS+ -volname Pixelorama ./build/mac/Pixelorama.dmg
2020-06-25 15:18:20 +00:00
- name : Upload Artifact 🚀
2020-11-16 18:54:39 +00:00
uses : actions/upload-artifact@v2
2020-06-25 15:18:20 +00:00
with :
name : Mac
2020-08-26 11:51:53 +00:00
path : ./build/mac/Pixelorama.dmg
2020-10-16 11:00:25 +00:00
retention-days : 14