-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
870 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 / / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Start Dolphin | ||
dolphin-emu "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 / / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
# Start PPSSPP | ||
PPSSPPQt "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.