This commit is contained in:
commit
b484d34af4
13
.drone.yml
Normal file
13
.drone.yml
Normal 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
35
Dockerfile
Normal 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"]
|
Reference in a new issue