Init
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon Bruder 2020-03-15 14:59:00 +00:00
commit b484d34af4
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
2 changed files with 48 additions and 0 deletions

13
.drone.yml Normal file
View file

@ -0,0 +1,13 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
registry: r.sbruder.de
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: r.sbruder.de/garbro

35
Dockerfile Normal file
View file

@ -0,0 +1,35 @@
FROM r.sbruder.de/unrar as program
RUN apk add --no-cache jq
RUN wget -O garbro.rar $(wget -q -O- https://api.github.com/repos/morkt/GARbro/releases|jq -r '[.[] | select(.prerelease == false)][0].assets[].browser_download_url'|grep -E '\.rar$') \
&& mkdir garbro \
&& cd garbro \
&& unrar x ../garbro.rar
FROM tianon/wine
RUN apt-get update \
&& apt-get -y install \
cabextract \
wget \
xvfb \
&& rm -rf /var/lib/apt/lists/*
RUN wget -nv -O /usr/local/bin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \
&& chmod +x /usr/local/bin/winetricks
RUN adduser --gecos '' --disabled-password wine
USER wine
ENV WINEARCH=win32
RUN wineboot \
&& sh -c 'Xvfb :0 & \
DISPLAY=:0 winetricks -q dotnet46' \
&& rm -rf /home/wine/.cache/winetricks/
COPY --from=program --chown=wine /garbro /home/wine/.wine/drive_c/users/wine/garbro
ENTRYPOINT ["wine", "/home/wine/.wine/drive_c/users/wine/garbro/GARbro.GUI.exe"]