File: build-appimage

package info (click to toggle)
openrct2 0.4.3%2Bds-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm
  • size: 67,880 kB
  • sloc: cpp: 549,527; ansic: 1,322; sh: 441; python: 269; xml: 180; php: 34; makefile: 19
file content (19 lines) | stat: -rwxr-xr-x 598 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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/openrct2.desktop
popd
mkdir -p artifacts
mv bin/OpenRCT2*.AppImage artifacts
rm $linuxdeploy