metaforce/ci/build-appimage.sh

19 lines
777 B
Bash
Raw Normal View History

2021-03-07 20:42:48 +00:00
#!/bin/bash -ex
2021-06-12 04:13:57 +00:00
shopt -s extglob
2021-03-07 20:42:48 +00:00
# Get linuxdeploy
2021-06-12 04:13:57 +00:00
cd "$RUNNER_WORKSPACE"
2021-03-07 20:42:48 +00:00
curl -OL https://github.com/encounter/linuxdeploy/releases/download/continuous/linuxdeploy-$(uname -m).AppImage
2022-02-22 03:12:03 +00:00
chmod +x linuxdeploy-$(uname -m).AppImage
2021-03-07 20:42:48 +00:00
# Build AppImage
2021-06-12 04:13:57 +00:00
cd "$GITHUB_WORKSPACE"
mkdir -p build/appdir/usr/{bin,share/{applications,icons/hicolor}}
cp build/install/!(*.*) build/appdir/usr/bin
2022-02-22 03:12:03 +00:00
cp -r Runtime/platforms/freedesktop/{16x16,32x32,48x48,64x64,128x128,256x256,512x512,1024x1024} build/appdir/usr/share/icons/hicolor
cp Runtime/platforms/freedesktop/metaforce.desktop build/appdir/usr/share/applications
2021-06-12 04:13:57 +00:00
cd build/install
VERSION="$METAFORCE_VERSION" NO_STRIP=1 "$RUNNER_WORKSPACE"/linuxdeploy-$(uname -m).AppImage \
2022-02-22 03:12:03 +00:00
--appdir "$GITHUB_WORKSPACE"/build/appdir --output appimage