Last active
September 1, 2021 18:19
-
-
Save zbyna/462bcf506139548d06b2ada77e9f5663 to your computer and use it in GitHub Desktop.
Godot appimage creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app: Godot | |
ingredients: | |
dist: trusty | |
sources: | |
- deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe | |
packages: | |
- libx11-6 | |
- libxinerama1 | |
- libxcursor1 | |
- libxrandr2 | |
- libfreetype6 | |
- libpng12-0 | |
- libasound2 | |
- libpulse0 | |
- libgl1-mesa-glx | |
- zlib1g | |
- libgcc1 | |
- libc6 | |
script: | |
# puvodni odkaz - nefunkcni: | |
# - URL=$(wget -q "https://godotengine.org/download" -O - | grep "Linux 64-bit" | head -n 1 | cut -d '"' -f 6) | |
# funkcni odkaz (přechodné řešení): | |
# - URL="https://downloads.tuxfamily.org/godotengine/3.3/Godot_v3.3-stable_x11.64.zip" | |
- URL=$(wget -q "https://godotengine.org/download" -O - | grep -B 1 "64-bit (x86_64)" | head -n 1 | cut -d '"' -f 2) | |
- wget -c "$URL" | |
- ls Godot_*.zip | cut -d _ -f 2 | cut -d "-" -f 1 | sed -e 's@v@@g' > VERSION | |
- unzip *.zip | |
script: | |
- find .. -name Godot* -type f -executable -exec mv {} usr/bin/godot \; | |
- wget -c "https://github.com/djrm/godot/raw/appimage_structure/tools/Godot.AppDir/godot.desktop" | |
- sed -i -e 's@Godot Engine@Godot@g' godot.desktop # Workaround for Bintray upload script that gets confused with spaces | |
- wget -c "https://github.com/djrm/godot/raw/appimage_structure/tools/Godot.AppDir/godot.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment