Compare commits
No commits in common. "8ecfade5c4acfd6e2e53b15e504cb3bafd0d915f" and "82e840fccbc7a5981b4f67765ce0d1d58f0c8404" have entirely different histories.
8ecfade5c4
...
82e840fccb
3 changed files with 1 additions and 35 deletions
|
@ -1,12 +0,0 @@
|
|||
FROM dobu/deps-base-ubuntu-jammy:latest
|
||||
|
||||
RUN apt-get -y update && apt-get -y install libgtk-3-0 curl libnss3
|
||||
|
||||
COPY ./itch-wrapper.sh /usr/bin/itch-wrapper.sh
|
||||
|
||||
RUN curl -Lo /usr/bin/itch-setup 'https://itch.io/app/download?platform=linux' && \
|
||||
chmod +x /usr/bin/itch-setup && chmod +x /usr/bin/itch-wrapper.sh
|
||||
|
||||
USER user
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/itch-wrapper.sh" ]
|
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
itch-setup --prefer-launch -- --no-sandbox
|
||||
|
||||
sleep 10
|
||||
|
||||
# Wait until the real itch.io process exits
|
||||
# Because whoever designed the client thought it is a good idea to unconditionally daemonize
|
||||
for pid in $(pgrep itch); do
|
||||
ppid=$(ps -o ppid= -p $pid | xargs)
|
||||
if [ "$ppid" == "1" ]; then
|
||||
while [ -d /proc/$pid ]; do
|
||||
sleep 1
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
|
@ -93,12 +93,7 @@ container_entrypoint() {
|
|||
ensure_sommelier() {
|
||||
assert_image_exists dobu/deps-sommelier
|
||||
remove_stale_container dobu-deps-sommelier
|
||||
if container_exists dobu-deps-sommelier; then
|
||||
[ -S "$DOBU_TMP/X11-unix/X1" ] && [ -S "$DOBU_TMP/xdg_runtime/wayland-1" ] && return
|
||||
log "Killing non-functional Sommelier container"
|
||||
podman kill dobu-deps-sommelier
|
||||
podman rm -f dobu-deps-sommelier
|
||||
fi
|
||||
container_exists dobu-deps-sommelier && return
|
||||
|
||||
rm -rf "$DOBU_TMP/xdg_runtime" || true
|
||||
rm -rf "$DOBU_TMP/X11-unix" || true
|
||||
|
|
Loading…
Add table
Reference in a new issue