diff --git a/AppRun b/AppRun new file mode 100755 index 0000000..8b9e022 --- /dev/null +++ b/AppRun @@ -0,0 +1,15 @@ +#!/bin/sh +HERE="$(dirname "$(readlink -f "${0}")")" +export UNION_PRELOAD="${HERE}" +export LD_PRELOAD="${HERE}/libunionpreload.so" +export PATH="${HERE}"/usr/bin/:"${HERE}"/usr/sbin/:"${HERE}"/usr/games/:"${HERE}"/bin/:"${HERE}"/sbin/:"${PATH}" +export LD_LIBRARY_PATH="${HERE}"/usr/lib/:"${HERE}"/usr/lib/i386-linux-gnu/:"${HERE}"/usr/lib/x86_64-linux-gnu/:"${HERE}"/usr/lib32/:"${HERE}"/usr/lib64/:"${HERE}"/lib/:"${HERE}"/lib/i386-linux-gnu/:"${HERE}"/lib/x86_64-linux-gnu/:"${HERE}"/lib32/:"${HERE}"/lib64/:"${LD_LIBRARY_PATH}" +export PYTHONPATH="${HERE}"/usr/share/pyshared/:"${PYTHONPATH}" +export PYTHONHOME="${HERE}"/usr/ +export XDG_DATA_DIRS="${HERE}"/usr/share/:"${XDG_DATA_DIRS}" +export PERLLIB="${HERE}"/usr/share/perl5/:"${HERE}"/usr/lib/perl5/:"${PERLLIB}" +export GSETTINGS_SCHEMA_DIR="${HERE}"/usr/share/glib-2.0/schemas/:"${GSETTINGS_SCHEMA_DIR}" +export QT_PLUGIN_PATH="${HERE}"/usr/lib/qt4/plugins/:"${HERE}"/usr/lib/i386-linux-gnu/qt4/plugins/:"${HERE}"/usr/lib/x86_64-linux-gnu/qt4/plugins/:"${HERE}"/usr/lib32/qt4/plugins/:"${HERE}"/usr/lib64/qt4/plugins/:"${HERE}"/usr/lib/qt5/plugins/:"${HERE}"/usr/lib/i386-linux-gnu/qt5/plugins/:"${HERE}"/usr/lib/x86_64-linux-gnu/qt5/plugins/:"${HERE}"/usr/lib32/qt5/plugins/:"${HERE}"/usr/lib64/qt5/plugins/:"${QT_PLUGIN_PATH}" +EXEC=$APPDIR/r3/r3.sh +#EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2- | sed -e 's|%.||g') +exec ${EXEC} "$@" diff --git a/README.md b/README.md index 549d25f..75fa244 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # r3-appimage -AppImage packaging template for The Red Robot Radio \ No newline at end of file +AppImage packaging template for The Red Robot Radio + +# Packaging instructions + +- Install [Arch-Deployer](https://github.com/ivan-hc/Arch-Deployer) on Arch Linux +- Clone this repository +- Unpack [r3 repo](https://patrice.asgardius.company/gitea/asgardius/r3) content on r3 folder +- Create an image for python-pygame +- copy template to appimage working directory +- Pack it +- Yout must get The_Red_Robot_Radio$ARCH.AppImage on desktop folder \ No newline at end of file diff --git a/r3.desktop b/r3.desktop new file mode 100644 index 0000000..47dacea --- /dev/null +++ b/r3.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=The Red Robot Radio +Exec=AppRun +Icon=r3 +Terminal=false +Type=Application +Categories=Game; +Keywords=Game; + diff --git a/r3.png b/r3.png new file mode 100644 index 0000000..548cbe7 Binary files /dev/null and b/r3.png differ diff --git a/r3/README.md b/r3/README.md new file mode 100644 index 0000000..504b97c --- /dev/null +++ b/r3/README.md @@ -0,0 +1 @@ +The Red Robot Radio source code goes here \ No newline at end of file