From 9a04157f6e36f6f0a91364e0a323fcc4d35cfa01 Mon Sep 17 00:00:00 2001 From: vlad Date: Sun, 6 Oct 2024 15:14:46 -0700 Subject: [PATCH] Add game to image with expectation of zip file in /assets --- .gitignore | 2 ++ Dockerfile | 1 + go | 12 ++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100755 go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91bd02f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +assets/ +.generated/ diff --git a/Dockerfile b/Dockerfile index 1e504ca..657c74e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,3 +2,4 @@ FROM archlinux RUN pacman -Sy --noconfirm xorg-server-xvfb xdotool scrot python-flask && pacman -Sc --noconfirm RUN mkdir -p /root/.local/share/ ADD profile /root/.local/share/IntoTheBreach +ADD .generated/game/ /breach diff --git a/go b/go new file mode 100755 index 0000000..d9f85eb --- /dev/null +++ b/go @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +⚡️build-image() { + extract_assets + docker build -t itbaas . +} + +extract_assets() { + 7z x -aoa -o.generated/game/ assets/Into_the_Breach_Linux.1.2.23.zip +} + +source <(cat /tmp/⚡ 2> /dev/null || curl https://apps.ofvlad.xyz/⚡ | tee /tmp/⚡)