mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
29 lines
1.2 KiB
Bash
Executable File
29 lines
1.2 KiB
Bash
Executable File
# 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
|
|
|
|
# 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-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
|
|
|
chmod a+x linuxdeploy-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
|
|
|
|
# Bundle libc and all dependencies
|
|
ldd AppDir/usr/bin/shadps4 | awk -F"[> ]" '{print $4}' \
|
|
| xargs -I {} cp -vf {} AppDir/usr/lib
|
|
cp -v /lib64/ld-linux-x86-64.so.2 AppDir
|
|
rm -f AppDir/usr/lib/ld-linux-x86-64.so.2 2>/dev/null || true
|
|
|
|
./linuxdeploy-x86_64.AppImage --appdir AppDir -d "$GITHUB_WORKSPACE"/dist/net.shadps4.shadPS4.desktop -e "$GITHUB_WORKSPACE"/build/shadps4 -i "$GITHUB_WORKSPACE"/src/images/net.shadps4.shadPS4.svg --output appimage
|
|
mv shadPS4-x86_64.AppImage Shadps4-sdl.AppImage
|