25 lines
1.1 KiB
Bash
25 lines
1.1 KiB
Bash
|
# SPDX-FileCopyrightText: 2024 shadPS4 Emulator Project
|
||
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
||
|
#!/bin/bash
|
||
|
|
||
|
if [[ -z $GITHUB_WORKSPACE ]]; then
|
||
|
GITHUB_WORKSPACE="${PWD%/*}"
|
||
|
fi
|
||
|
|
||
|
export PATH="$Qt6_DIR/bin:$PATH"
|
||
|
|
||
|
# Prepare Tools for building the AppImage
|
||
|
wget -q https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||
|
wget -q https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
||
|
wget -q https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
||
|
|
||
|
chmod a+x linuxdeploy-x86_64.AppImage
|
||
|
chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage
|
||
|
chmod a+x linuxdeploy-plugin-checkrt-x86_64.sh
|
||
|
|
||
|
# Build AppImage
|
||
|
./linuxdeploy-x86_64.AppImage --appdir AppDir
|
||
|
./linuxdeploy-plugin-checkrt-x86_64.sh --appdir AppDir
|
||
|
./linuxdeploy-x86_64.AppImage --appdir AppDir -d "$GITHUB_WORKSPACE"/.github/shadps4.desktop -e "$GITHUB_WORKSPACE"/build/shadps4 -i "$GITHUB_WORKSPACE"/.github/shadps4.png --plugin qt --output appimage
|