mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-26 17:51:53 +01:00
3f84c7fa24
- Interface languages - Font cache - GameProfile
52 lines
2.0 KiB
Bash
Executable File
52 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "${GITHUB_WORKSPACE}" ]; then
|
|
export GITHUB_WORKSPACE="."
|
|
fi
|
|
|
|
curl -sSfLO "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage"
|
|
chmod a+x linuxdeploy*.AppImage
|
|
curl -sSfL https://github.com$(curl https://github.com/probonopd/go-appimage/releases/expanded_assets/continuous | grep "mkappimage-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2) -o mkappimage.AppImage
|
|
chmod a+x mkappimage.AppImage
|
|
curl -sSfLO "https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
|
|
chmod a+x linuxdeploy-plugin-gtk.sh
|
|
|
|
if [[ ! -e /usr/lib/x86_64-linux-gnu ]]; then
|
|
sed -i 's#lib\/x86_64-linux-gnu#lib64#g' linuxdeploy-plugin-gtk.sh
|
|
fi
|
|
|
|
mkdir -p AppDir/usr/bin
|
|
cp dist/linux/{info.cemu.Cemu.desktop,info.cemu.Cemu.png} AppDir/
|
|
|
|
mkdir -p AppDir/usr/share/applications
|
|
mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
|
|
mkdir -p AppDir/usr/lib
|
|
|
|
cp -r bin AppDir/usr/share/Cemu
|
|
cp /usr/lib/x86_64-linux-gnu/{libsepol.so.1,libffi.so.7,libpcre.so.3,libGLU.so.1,libthai.so.0} AppDir/usr/lib
|
|
|
|
mv AppDir/usr/share/Cemu/Cemu AppDir/usr/bin/
|
|
chmod +x AppDir/usr/bin/Cemu
|
|
|
|
export UPD_INFO="gh-releases-zsync|cemu-project|Cemu|ci|Cemu.AppImage.zsync"
|
|
./linuxdeploy-x86_64.AppImage --appimage-extract-and-run\
|
|
--appdir="$GITHUB_WORKSPACE"/AppDir/ \
|
|
-d "$GITHUB_WORKSPACE"/AppDir/info.cemu.Cemu.desktop \
|
|
-i "$GITHUB_WORKSPACE"/AppDir/info.cemu.Cemu.png \
|
|
-e "$GITHUB_WORKSPACE"/AppDir/usr/bin/Cemu \
|
|
--plugin gtk
|
|
|
|
GITVERSION=$(git rev-parse --short HEAD)
|
|
echo $GITVERSION
|
|
if [[ -z ${GITVERSION} ]]; then
|
|
GITVERSION=experimental
|
|
fi
|
|
|
|
echo "Cemu Version Cemu-${GITVERSION}"
|
|
rm AppDir/usr/lib/libwayland-client.so.0
|
|
echo "export LC_ALL=C" >> AppDir/apprun-hooks/linuxdeploy-plugin-gtk.sh
|
|
VERSION=${GITVERSION} ./mkappimage.AppImage --appimage-extract-and-run "$GITHUB_WORKSPACE"/AppDir
|
|
|
|
mkdir -p "$GITHUB_WORKSPACE"/artifacts/
|
|
mv Cemu-${GITVERSION}-x86_64.AppImage "$GITHUB_WORKSPACE"/artifacts/
|