-
-
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
6 changed files
with
85 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,49 @@ | ||
ARG REPO | ||
FROM ghcr.io/${REPO}:debian-bookworm AS rootfs | ||
ARG REPO | ||
|
||
# Install packages | ||
RUN \ | ||
echo "**** install packages ****" && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
libsdl2-2.0-0 && \ | ||
ARCH=$(uname -m| sed 's/x86_64/x64/g'| sed 's/aarch64/arm64/') && \ | ||
DREAMM_VERSION=$(curl -sL https://aarongiles.com/dreamm/ | \ | ||
awk -F '(dreamm-|-linux-x64.tgz)' '/releases\\dreamm-.*-linux-x64.tgz/ {print $2}') && \ | ||
curl -o \ | ||
/tmp/dreamm.tgz -L \ | ||
"https://aarongiles.com/dreamm/releases/dreamm-${DREAMM_VERSION}-linux-${ARCH}.tgz" && \ | ||
mkdir -p \ | ||
/opt/dreamm && \ | ||
tar xf \ | ||
/tmp/dreamm.tgz -C \ | ||
/opt/dreamm && \ | ||
echo "**** desktop file ****" && \ | ||
mkdir -p \ | ||
/usr/share/icons/hicolor/scalable/apps/ && \ | ||
curl -o \ | ||
/usr/share/icons/hicolor/scalable/apps/dreamm.svg \ | ||
https://github.com/linuxserver/proot-apps/raw/master/metadata/img/dreamm.svg && \ | ||
DESKTOP_FILE=/usr/share/applications/dreamm-pa.desktop && \ | ||
echo '[Desktop Entry]' > ${DESKTOP_FILE} && \ | ||
echo 'Type=Application' >> ${DESKTOP_FILE} && \ | ||
echo 'Name=DREAMM PA' >> ${DESKTOP_FILE} && \ | ||
echo 'Icon=dreamm' >> ${DESKTOP_FILE} && \ | ||
echo 'Exec=/bin/sh -c "$HOME/.local/bin/proot-apps run ghcr.io/'${REPO}':dreamm %U"' >> ${DESKTOP_FILE} && \ | ||
echo "**** set bin name ****" && \ | ||
echo "dreamm-pa" > /bin-name && \ | ||
echo "**** cleanup ****" && \ | ||
apt-get autoclean && \ | ||
rm -rf \ | ||
/root/.cache \ | ||
/var/lib/apt/lists/* \ | ||
/var/tmp/* \ | ||
/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 DREAMM | ||
/opt/dreamm/dreamm "$@" |
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/dreamm.svg \ | ||
$HOME/.local/share/icons/hicolor/scalable/apps/ | ||
echo "Adding start menu entry" | ||
mkdir -p $HOME/.local/share/applications/ | ||
cp \ | ||
/usr/share/applications/dreamm-pa.desktop \ | ||
$HOME/.local/share/applications/ | ||
echo "Adding desktop shortcut" | ||
mkdir -p $HOME/Desktop | ||
cp \ | ||
/usr/share/applications/dreamm-pa.desktop \ | ||
$HOME/Desktop/ | ||
chmod +x $HOME/Desktop/dreamm-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/dreamm.png | ||
echo "Removing start menu entry" | ||
rm -f $HOME/.local/share/applications/dreamm-pa.desktop | ||
echo "Removing desktop shortcut" | ||
rm -f $HOME/Desktop/dreamm-pa.desktop |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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