From d5d7947fed5ed5eda4598ce2ccff3735365fe71e Mon Sep 17 00:00:00 2001 From: thelamer Date: Tue, 23 Apr 2024 20:18:42 -0700 Subject: [PATCH] add dolphin and ppsspp --- apps/dolphin/Dockerfile | 30 ++ apps/dolphin/entrypoint | 4 + apps/dolphin/install | 19 + apps/dolphin/remove | 7 + apps/ppsspp/Dockerfile | 30 ++ apps/ppsspp/entrypoint | 4 + apps/ppsspp/install | 19 + apps/ppsspp/remove | 7 + metadata/img/dolphin.svg | 9 + metadata/img/ppsspp.svg | 731 +++++++++++++++++++++++++++++++++++++++ metadata/metadata.yml | 10 + 11 files changed, 870 insertions(+) create mode 100644 apps/dolphin/Dockerfile create mode 100755 apps/dolphin/entrypoint create mode 100755 apps/dolphin/install create mode 100755 apps/dolphin/remove create mode 100644 apps/ppsspp/Dockerfile create mode 100755 apps/ppsspp/entrypoint create mode 100755 apps/ppsspp/install create mode 100755 apps/ppsspp/remove create mode 100644 metadata/img/dolphin.svg create mode 100644 metadata/img/ppsspp.svg diff --git a/apps/dolphin/Dockerfile b/apps/dolphin/Dockerfile new file mode 100644 index 00000000..5336d611 --- /dev/null +++ b/apps/dolphin/Dockerfile @@ -0,0 +1,30 @@ +ARG REPO +FROM ghcr.io/${REPO}:alpine-319-av as rootfs +ARG REPO + +# Install packages +RUN \ + echo "**** install packages ****" && \ + apk add --no-cache \ + dolphin-emu && \ + echo "**** customize desktop file ****" && \ + sed -i \ + -e "/^Exec=/c Exec=/bin/sh -c \"\$HOME\/.local\/bin\/proot-apps run ghcr.io/${REPO}:dolphin %U\"" \ + -e "s/Name=Dolphin Emulator/Name=Dolphin Emulator PA/g" \ + -e '/^TryExec=/d' \ + /usr/share/applications/dolphin-emu.desktop && \ + mv \ + /usr/share/applications/dolphin-emu.desktop \ + /usr/share/applications/dolphin-pa.desktop && \ + echo "**** set bin name ****" && \ + echo "dolphin-pa" > /bin-name && \ + echo "**** cleanup ****" && \ + rm -rf \ + /tmp/* + +COPY ./entrypoint /entrypoint +COPY ./install /install +COPY ./remove /remove + +FROM scratch +COPY --from=rootfs / / diff --git a/apps/dolphin/entrypoint b/apps/dolphin/entrypoint new file mode 100755 index 00000000..9b89af7b --- /dev/null +++ b/apps/dolphin/entrypoint @@ -0,0 +1,4 @@ +#!/bin/bash + +# Start Dolphin +dolphin-emu "$@" diff --git a/apps/dolphin/install b/apps/dolphin/install new file mode 100755 index 00000000..8ef8ac2d --- /dev/null +++ b/apps/dolphin/install @@ -0,0 +1,19 @@ +#!/bin/bash + +## Desktop and icons install ## +echo "Adding icon" +mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/ +cp \ + /usr/share/icons/hicolor/scalable/apps/dolphin-emu.svg \ + $HOME/.local/share/icons/hicolor/scalable/apps/ +echo "Adding start menu entry" +mkdir -p $HOME/.local/share/applications/ +cp \ + /usr/share/applications/dolphin-pa.desktop \ + $HOME/.local/share/applications/ +echo "Adding desktop shortcut" +mkdir -p $HOME/Desktop +cp \ + /usr/share/applications/dolphin-pa.desktop \ + $HOME/Desktop/ +chmod +x $HOME/Desktop/dolphin-pa.desktop diff --git a/apps/dolphin/remove b/apps/dolphin/remove new file mode 100755 index 00000000..42615c39 --- /dev/null +++ b/apps/dolphin/remove @@ -0,0 +1,7 @@ +#!/bin/bash +echo "Removing icon" +rm -f $HOME/.local/share/icons/hicolor/scalable/apps/dolphin-emu.svg +echo "Removing start menu entry" +rm -f $HOME/.local/share/applications/dolphin-pa.desktop +echo "Removing desktop shortcut" +rm -f $HOME/Desktop/dolphin-pa.desktop diff --git a/apps/ppsspp/Dockerfile b/apps/ppsspp/Dockerfile new file mode 100644 index 00000000..8c74c0b6 --- /dev/null +++ b/apps/ppsspp/Dockerfile @@ -0,0 +1,30 @@ +ARG REPO +FROM ghcr.io/${REPO}:alpine-319-av as rootfs +ARG REPO + +# Install packages +RUN \ + echo "**** install packages ****" && \ + apk add --no-cache \ + ppsspp && \ + echo "**** customize desktop file ****" && \ + sed -i \ + -e "/^Exec=/c Exec=/bin/sh -c \"\$HOME\/.local\/bin\/proot-apps run ghcr.io/${REPO}:ppsspp %U\"" \ + -e "s/Name=PPSSPPQt/Name=PPSSPPQt PA/g" \ + -e '/^TryExec=/d' \ + /usr/share/applications/PPSSPPQt.desktop && \ + mv \ + /usr/share/applications/PPSSPPQt.desktop \ + /usr/share/applications/ppsspp-pa.desktop && \ + echo "**** set bin name ****" && \ + echo "ppsspp-pa" > /bin-name && \ + echo "**** cleanup ****" && \ + rm -rf \ + /tmp/* + +COPY ./entrypoint /entrypoint +COPY ./install /install +COPY ./remove /remove + +FROM scratch +COPY --from=rootfs / / diff --git a/apps/ppsspp/entrypoint b/apps/ppsspp/entrypoint new file mode 100755 index 00000000..9c8a79d1 --- /dev/null +++ b/apps/ppsspp/entrypoint @@ -0,0 +1,4 @@ +#!/bin/bash + +# Start PPSSPP +PPSSPPQt "$@" diff --git a/apps/ppsspp/install b/apps/ppsspp/install new file mode 100755 index 00000000..a97f51e2 --- /dev/null +++ b/apps/ppsspp/install @@ -0,0 +1,19 @@ +#!/bin/bash + +## Desktop and icons install ## +echo "Adding icon" +mkdir -p $HOME/.local/share/icons/hicolor/scalable/apps/ +cp \ + /usr/share/icons/hicolor/scalable/apps/ppsspp.svg \ + $HOME/.local/share/icons/hicolor/scalable/apps/ +echo "Adding start menu entry" +mkdir -p $HOME/.local/share/applications/ +cp \ + /usr/share/applications/ppsspp-pa.desktop \ + $HOME/.local/share/applications/ +echo "Adding desktop shortcut" +mkdir -p $HOME/Desktop +cp \ + /usr/share/applications/ppsspp-pa.desktop \ + $HOME/Desktop/ +chmod +x $HOME/Desktop/ppsspp-pa.desktop diff --git a/apps/ppsspp/remove b/apps/ppsspp/remove new file mode 100755 index 00000000..061baa69 --- /dev/null +++ b/apps/ppsspp/remove @@ -0,0 +1,7 @@ +#!/bin/bash +echo "Removing icon" +rm -f $HOME/.local/share/icons/hicolor/scalable/apps/ppsspp.svg +echo "Removing start menu entry" +rm -f $HOME/.local/share/applications/ppsspp-pa.desktop +echo "Removing desktop shortcut" +rm -f $HOME/Desktop/ppsspp-pa.desktop diff --git a/metadata/img/dolphin.svg b/metadata/img/dolphin.svg new file mode 100644 index 00000000..5ea47400 --- /dev/null +++ b/metadata/img/dolphin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/metadata/img/ppsspp.svg b/metadata/img/ppsspp.svg new file mode 100644 index 00000000..97d037a8 --- /dev/null +++ b/metadata/img/ppsspp.svg @@ -0,0 +1,731 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + diff --git a/metadata/metadata.yml b/metadata/metadata.yml index c3d52564..ddc22913 100644 --- a/metadata/metadata.yml +++ b/metadata/metadata.yml @@ -59,6 +59,11 @@ include: arch: linux/amd64,linux/arm64 icon: digikam.svg description: "Professional Photo Management with the Power of Open Source." + - name: dolphin + full_name: Dolphin Emulator + arch: linux/amd64,linux/arm64 + icon: dolphin.svg + description: "Dolphin is an emulator for two recent Nintendo video game consoles: the GameCube and the Wii. It allows PC gamers to enjoy games for these two consoles in full HD (1080p) with several enhancements: compatibility with all PC controllers, turbo speed, networked multiplayer, and even more." - name: doublecmd full_name: Double Commander arch: linux/amd64,linux/arm64 @@ -227,6 +232,11 @@ include: arch: linux/amd64,linux/arm64 icon: postman.svg description: "Postman is an application that allows the testing of web APIs." + - name: ppsspp + full_name: PPSSPP + arch: linux/amd64,linux/arm64 + icon: ppsspp.svg + description: "PPSSPP is a PSP emulator that can run games in full HD resolution." - name: pycharm full_name: PyCharm Community Edition arch: linux/amd64,linux/arm64