Add capability to compile vintage story mods

This commit is contained in:
zontreck 2024-12-23 11:49:38 -07:00
parent abaefd3e10
commit 15d9f5e109
3 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,11 @@
FROM git.zontreck.com/ariascreations/buildenvironments:appimage AS BUILDER
ADD ./vs_server_linux-x64_1.19.8.tar.gz /
WORKDIR /
RUN mkdir vintagestory && cd vintagestory && tar -xvf ../vs_server_linux-x64_1.19.8.tar.gz
RUN rm /*.tar.gz
FROM git.zontreck.com/ariascreations/buildenvironments:appimage
ENV PUB NAN
@ -10,4 +18,11 @@ WORKDIR /
ADD ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /root/.local/share
COPY --from=BUILDER --chown=root:root /vintagestory /root/.local/share/vintagestory
ADD ./update_vs_dotgame /bin/update_vs_dotgame
RUN chmod +x /bin/update_vs_dotgame
ENTRYPOINT [ "/bin/bash", "/entrypoint.sh" ]

View file

@ -0,0 +1,4 @@
#!/bin/bash
rm .game || true
ln -sv ~/.local/share/vintagestory .game

Binary file not shown.