Skip to content

Commit 495c291

Browse files
committed
add basic manifest support
1 parent 4f338cb commit 495c291

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ ENV DISPLAY=:1 \
5151
PULSE_RUNTIME_PATH=/defaults \
5252
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5353
NVIDIA_DRIVER_CAPABILITIES=all \
54-
DISABLE_ZINK=false
54+
DISABLE_ZINK=false \
55+
TITLE=Selkies
5556

5657
RUN \
5758
echo "**** dev deps ****" && \
@@ -197,6 +198,12 @@ RUN \
197198
mv \
198199
selkies_joystick_interposer.so \
199200
/usr/lib/selkies_joystick_interposer.so && \
201+
echo "**** add icon ****" && \
202+
mkdir -p \
203+
/usr/share/selkies/www && \
204+
curl -o \
205+
/usr/share/selkies/www/icon.png \
206+
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/selkies-logo.png && \
200207
echo "**** openbox tweaks ****" && \
201208
sed -i \
202209
-e 's/NLIMC/NLMC/g' \

Dockerfile.aarch64

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ ENV DISPLAY=:1 \
5151
PULSE_RUNTIME_PATH=/defaults \
5252
SELKIES_INTERPOSER=/usr/lib/selkies_joystick_interposer.so \
5353
NVIDIA_DRIVER_CAPABILITIES=all \
54-
DISABLE_ZINK=false
54+
DISABLE_ZINK=false \
55+
TITLE=Selkies
5556

5657
RUN \
5758
echo "**** dev deps ****" && \
@@ -195,6 +196,12 @@ RUN \
195196
mv \
196197
selkies_joystick_interposer.so \
197198
/usr/lib/selkies_joystick_interposer.so && \
199+
echo "**** add icon ****" && \
200+
mkdir -p \
201+
/usr/share/selkies/www && \
202+
curl -o \
203+
/usr/share/selkies/www/icon.png \
204+
https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/selkies-logo.png && \
198205
echo "**** openbox tweaks ****" && \
199206
sed -i \
200207
-e 's/NLIMC/NLMC/g' \

root/etc/s6-overlay/s6-rc.d/init-selkies-config/run

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,21 @@ mkdir -pm1777 /dev/input
7575
touch /dev/input/{js0,js1,js2,js3,event1000,event1001,event1002,event1003}
7676
chmod 777 /dev/input/js* /dev/input/event*
7777

78+
# Manifest creation
79+
echo "{
80+
\"name\": \"${TITLE}\",
81+
\"short_name\": \"${TITLE}\",
82+
\"manifest_version\": 2,
83+
\"version\": \"1.0.0\",
84+
\"display\": \"fullscreen\",
85+
\"background_color\": \"#000000\",
86+
\"theme_color\": \"#000000\",
87+
\"icons\": [
88+
{
89+
\"src\": \"icon.png\",
90+
\"type\": \"image/png\",
91+
\"sizes\": \"180x180\"
92+
}
93+
],
94+
\"start_url\": \"/\"
95+
}" > /usr/share/selkies/www/manifest.json

0 commit comments

Comments
 (0)