From b928c6eebdd93cd86a44a54ceff9f1cce1d9779d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 7 Apr 2022 23:29:17 +0900 Subject: [PATCH] Deleted old flatpak builder --- build-flatpak.sh | 73 ------------------------------------------------ 1 file changed, 73 deletions(-) delete mode 100755 build-flatpak.sh diff --git a/build-flatpak.sh b/build-flatpak.sh deleted file mode 100755 index 0d7a145f..00000000 --- a/build-flatpak.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/bash - -INSTALL_DIR=$PWD -PREVIOUS_DIR=$PWD - -echo "Welcome to the RetroDECK flatpak builder." -echo "This script is helping the flatpak building in $INSTALL_DIR." - -read -n 1 -r -s -p $'Press enter to continue...\n' -echo "Building RetroDECK, please stand by." - -if command -v apt >/dev/null; then - sudo apt install flatpak flatpak-builder -elif command -v apt-get >/dev/null; then - sudo apt-get install flatpak flatpak-builder -elif command -v yum >/dev/null; then - sudo yum install flatpak flatpak-builder # not sure about this -else - sudo pacman -S flatpak flatpak-builder -fi - -echo "Initializing Flatpak" -flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo -flatpak install -y org.kde.Sdk//5.15-21.08 org.kde.Platform//5.15-21.08 - -cd $INSTALL_DIR - -# External flatpaks import -# To update change branch and update the manifest. -# Some json must be converted with this: https://codebeautify.org/json-to-yaml - -# RetroArch -# https://github.com/flathub/org.libretro.RetroArch/blob/master/org.libretro.RetroArch.json -git clone --recursive --branch update-v1.10.2 https://github.com/flathub/org.libretro.RetroArch.git -# removing not needed and potentially dangerous files -#rm -rf org.libretro.RetroArch/shared-modules -#rm -f org.libretro.RetroArch/retroarch.cfg -#rm -f org.libretro.RetroArch/README.md -#rm -f org.libretro.RetroArch/org.libretro.RetroArch.json -#rm -f org.libretro.RetroArch/COPYING -#rm -rf org.libretro.RetroArch/.* -ln -s org.libretro.RetroArch/* $INSTALL_DIR/ - -# Yuzu -# https://github.com/flathub/org.yuzu_emu.yuzu/blob/master/org.yuzu_emu.yuzu.json -#git clone --recursive https://github.com/flathub/org.yuzu_emu.yuzu -#rm -rf org.yuzu_emu.yuzu/shared-modules -#rm -rf org.yuzu_emu.yuzu/.* -#ln -s org.yuzu_emu.yuzu/* $INSTALL_DIR/ - - -cd $INSTALL_DIR -flatpak-builder retrodeck-flatpak com.xargon.retrodeck.yml --force-clean - -# Useful commands: -# flatpak-builder --user --install --force-clean retrodeck-flatpak com.xargon.retrodeck.yml -# flatpak run com.xargon.retrodeck -# -# flatpak --user remote-add --no-gpg-verify xargon-dev repo -# flatpak --user install xargon-dev com.xargon.retrodeck -# -# flatpak run --command=/bin/bash com.xargon.retrodeck - -# Cleaning up -#rm -rf org.libretro.RetroArch -#rm -rf org.yuzu_emu.yuzu - -# removing orphaned symlinks -find -L . -name . -o -type d -prune -o -type l -exec rm {} + - -echo "Building terminated, you can install retrodeck by typing: flatpak run com.xargon.retrodeck" - -cd $PREVIOUS_DIR \ No newline at end of file