File: build-appimage

package info (click to toggle)
openrct2 0.4.31%2Bds-1
  • links: PTS, VCS
  • area: contrib
  • in suites: forky, sid
  • size: 105,012 kB
  • sloc: cpp: 677,649; ansic: 1,322; javascript: 716; xml: 646; sh: 439; python: 313; php: 34; makefile: 19
file content (23 lines) | stat: -rwxr-xr-x 831 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash

set -e

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
curl -fLo $linuxdeploy https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x $linuxdeploy
pushd bin
    $linuxdeploy --appimage-extract-and-run --appdir install/ --output appimage --desktop-file install/usr/share/applications/io.openrct2.openrct2.desktop
popd
mkdir -p artifacts
# If APPIMAGE_FILE_NAME is set, use it as the filename, otherwise use the default
if [ -z "$APPIMAGE_FILE_NAME" ]; then
    APPIMAGE_FILE_NAME=OpenRCT2-$OPENRCT2_VERSION-linux-x86_64.AppImage
fi
mv bin/OpenRCT2-x86_64.AppImage artifacts/$APPIMAGE_FILE_NAME
rm $linuxdeploy