This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
2023-04-28 17:50:13 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#Building Citra
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2023-06-16 23:06:18 +00:00
|
|
|
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ -DENABLE_QT_TRANSLATION=ON -DCITRA_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -DUSE_DISCORD_PRESENCE=ON
|
2023-04-28 17:50:13 +00:00
|
|
|
ninja
|
|
|
|
|
|
|
|
ctest -VV -C Release
|
|
|
|
|
2023-05-19 18:34:17 +00:00
|
|
|
#Circumvent missing LibFuse in Docker, by extracting the AppImage
|
|
|
|
export APPIMAGE_EXTRACT_AND_RUN=1
|
|
|
|
|
2023-04-28 17:50:13 +00:00
|
|
|
#Building AppDir
|
|
|
|
DESTDIR="./AppDir" ninja install
|
|
|
|
mv ./AppDir/usr/local/bin ./AppDir/usr
|
|
|
|
mv ./AppDir/usr/local/share ./AppDir/usr
|
|
|
|
rm -rf ./AppDir/usr/local
|
2023-05-19 18:34:17 +00:00
|
|
|
QMAKE=/usr/lib/qt6/bin/qmake DEPLOY_PLATFORM_THEMES=1 /linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --plugin checkrt
|
|
|
|
sed -i 's/*XFCE*/*X-Cinnamon*|*XFCE*/g' ./AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
|
|
|
|
sed -i '/export QT_QPA_PLATFORMTHEME=gtk3/a \ \ \ \ \ \ \ \ export GDK_BACKEND=x11' ./AppDir/apprun-hooks/linuxdeploy-plugin-qt-hook.sh
|
2023-04-28 17:50:13 +00:00
|
|
|
|
|
|
|
#Build AppImage
|
2023-05-19 18:34:17 +00:00
|
|
|
QMAKE=/usr/lib/qt6/bin/qmake /linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
|