1
0

Add game to image with expectation of zip file in /assets

This commit is contained in:
vlad 2024-10-06 15:14:46 -07:00
parent 93c03c060f
commit 9a04157f6e
3 changed files with 15 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
assets/
.generated/

View File

@ -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

12
go Executable file
View File

@ -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/⚡)