2022-03-10 00:15:32 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
2020-01-24 06:46:12 -05:00
|
|
|
|
|
|
|
echo -e "\033[0;36mBuilding AppImage for OpenRCT2...\033[0m"
|
|
|
|
|
|
|
|
# Ensure we are in root directory
|
|
|
|
basedir="$(readlink -f `dirname $0`/..)"
|
|
|
|
cd $basedir
|
|
|
|
|
|
|
|
linuxdeploy=/tmp/linuxdeploy-x86_64.AppImage
|
2021-04-12 18:01:15 -04:00
|
|
|
curl -fLo $linuxdeploy https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
2020-01-24 06:46:12 -05:00
|
|
|
chmod +x $linuxdeploy
|
|
|
|
pushd bin
|
|
|
|
$linuxdeploy --appimage-extract-and-run --appdir install/ --output appimage --desktop-file install/usr/share/applications/openrct2.desktop
|
|
|
|
popd
|
|
|
|
mkdir -p artifacts
|
|
|
|
mv bin/OpenRCT2*.AppImage artifacts
|
|
|
|
rm $linuxdeploy
|