RetroDECK/developer_toolbox/build_retrodeck_locally.sh
XargonWan 7ef3628995
feat/lighter manifest (#844)
* ES-DE: outsourced

* RetroArch: migrated to AppImage

* XEMU: migrated to AppImage

* MELONDS: migrated to AppImage

* RPCS3: migrated to AppImage

* MANIFEST: avoid overwriting native libraries

* MANIFEST: fixing ES-DE

* MANIFEST: fixed and normalized /app with FLATPAK_DEST

* MANIFEST: cleanup

* MANIFEST: fixed RetroArch

* PPSSPP: added wanted sdl module

* ES-DE: moved repo

* PPSSPP: outsourced

* PPSSPP: fixed link

* MANIFEST: fixing copy actions

* PCSX2: removing troublesome file

* DOLPHIN: outsourced

* SOLARUS: outsourced

* MANIFEST: lowercased rpcs3 sha

* MANIFEST: trying to figure out automation_task_list

* MANIFEST: fixed primehack placeholders

* REVERT ME: RUNNER CHANGED

* XEMU: moved on the bottom just to see if something changes

* DUCKSTATION: wrong cp target

* MANFEST: moved thir party libraries in /app/usr/local/lib

* MANFEST: removing dolphin debug libraries

* MANFEST: removing primehack debug libraries

* MANFEST: removing primehack pkgconfig libraries

* MANFEST: removing cemu lib

* SOLARUS: removing errored libs

* MAME: reverted to its original state as it's not coming with libraries

* RYUJINX: fixing chmod command

* GZDOOM: outsourced

* MANIFEST: added debug for checking out where tf is our icon

* Submodules cleanup

* GZDOOM: cleanup

* FRAMEWORK: moved third party libs into /app/retrodeck/lib

* MANIFEST: added retrodeck-pre-build commands

* MANIFEST: module renamed

* ES-DE: re-removed 'files/lib/girepository-1.0'

* GLOBAL: pathing the retrodeck components provided libraries

* RPCS3: moved bufgix in the proper module

* MANIFEST: moved component libraries into /app/retrodeck/lib

* MANIFEST: removing some debug cleanups

* MANIFEST: desktop file don't need to be executable

* ES-DE: re-adding libpoppler

* ES--DE: moved to the end to overwrite older libraries

* RYUJINX: fixed manifest

* MANIFEST: injecting needed libraries and discarding the troublesome ones

* MANIFEST: injecting needed libraries and discarding the troublesome ones - adding more

* MelonDS: outsourced but self built in QT6

* MANIFEST: automated the third party libs manager

* MANIFEST: fixed melonds build

* Ryujinx: downgraded to the older but working version

* MANIFEST: removed debug code

* WORKFLOW: running on self-hosted again

* MANIFEST: including debug and pkgconfig's librareis

* MANIFEST: removing pkgconfig's librareis

* MANIFEST: cannot move so copy and remove

* MANIFEST: cannot move so copy and remove - fix

* Toying with automation file to make it work again

* PRE_BUILD_AUTOMATION: testing a different script

* PRE_BUILD_AUTOMATION: adding new sha function

* MAME: fixing link

* MANIFEST: tweaks

* ATL: fixing ES-DE entry

* PPSSPP: fixed hash

* SOLARUS: fixing debug libs copy command

* APDATA: updated

* SOLARUS: that's not the library you're looking for

* GZDOOM: removing debug even here

* Revamped codename wordlist

* MANIFEST: following symlinks during library copy

* WORKFLOW: moving down the artifact preparation for fltahub as we don't even need it in cooker

* Manually adding missing libraries

* More codenames

* CEMU: added wrapper +  RPCS3 fixes

* THE GREAT FOLDER MOVE (aka let's see how much things I can break in a single commit)

* emu: fixed dest filename for the wrapper

* Cemu: fixing wrapper installation

* MANIFEST: trying to add LLVM to solve PCSX2, Duckstation issues

* MANIFEST: adding llvm doesn't change the situation, removed

* MANIFEST: trying to add vulkan

* MANIFEST: trying to add vulkan - removed as it should be already in (and that's broken)

* VULKAN: testing some libraries

* VULKAN: trying to add shaderc

* Manifest: renaming es-de module to stick with the repo name for updating purposes

* Migrated to the new latest links

* MAME: frixed url

* PCSX2: updated to 2.1.55

* Reverting workfolw edits

* WORKFLOW: targetting the old repo for the release

* WORKFLOW: updated some actions to a newever version to avoid deprecation at the end of the year

* MISSING_LIBS: trying to fetch libshaderc

* MAIN_WORKLFOW: updating actions versions [skip ci]
2024-08-05 03:45:21 +02:00

38 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
# WARNING: run this script from the project root folder, not from here!!
# Check if script is running with elevated privileges
if [ "$EUID" -ne 0 ]; then
echo "The build might fail without some superuser permissions, please run me with sudo. Continue without sudo? [y/N]"
read -r continue_without_sudo
if [[ "$continue_without_sudo" != "y" ]]; then
exit 1
fi
fi
git submodule update --init --recursive
export GITHUB_WORKSPACE="."
# Initialize the Flatpak repo
ostree init --mode=archive-z2 --repo=${GITHUB_WORKSPACE}/retrodeck-repo
cp net.retrodeck.retrodeck.appdata.xml net.retrodeck.retrodeck.appdata.xml.bak
cp net.retrodeck.retrodeck.yml net.retrodeck.retrodeck.yml.bak
automation_tools/install_dependencies.sh
automation_tools/cooker_build_id.sh
automation_tools/pre_build_automation.sh
automation_tools/cooker_flatpak_portal_add.sh
# THIS SCRIPT IS BROKEN HENCE DISABLED FTM
# automation_tools/appdata_management.sh
automation_tools/flatpak_build_download_only.sh
automation_tools/flatpak_build_only.sh
automation_tools/flatpak_build_bundle.sh
rm -f net.retrodeck.retrodeck.appdata.xml
rm -f net.retrodeck.retrodeck.yml
cp net.retrodeck.retrodeck.appdata.xml.bak net.retrodeck.retrodeck.appdata.xml
cp net.retrodeck.retrodeck.yml.bak net.retrodeck.retrodeck.yml