Skip to content

Commit

Permalink
add dreamm emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
thelamer committed Jul 31, 2024
1 parent 935e34c commit a8b3223
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
49 changes: 49 additions & 0 deletions apps/dreamm/Dockerfile
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 / /
4 changes: 4 additions & 0 deletions apps/dreamm/entrypoint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# Start DREAMM
/opt/dreamm/dreamm "$@"
19 changes: 19 additions & 0 deletions apps/dreamm/install
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
7 changes: 7 additions & 0 deletions apps/dreamm/remove
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
1 change: 1 addition & 0 deletions metadata/img/dreamm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions metadata/metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ include:
arch: linux/amd64,linux/arm64
icon: doublecmd.svg
description: "Double Commander is a free cross-platform open source file manager with two panels side by side (or one above the other). It is inspired by Total Commander and features some innovative new ideas."
- name: dreamm
full_name: DREAMM
arch: linux/amd64,linux/arm64
icon: dreamm.svg
description: "DREAMM is a bespoke emulator for LucasArts games, relying on low-level emulation instead of reverse engineering."
- name: earth
full_name: Google Earth Pro
arch: linux/amd64
Expand Down

0 comments on commit a8b3223

Please sign in to comment.