Commit 6b24efa5 authored by Eric Duminil's avatar Eric Duminil
Browse files

Download and install

parent bc98d585
...@@ -24,18 +24,15 @@ RUN dpkg --add-architecture i386 \ ...@@ -24,18 +24,15 @@ RUN dpkg --add-architecture i386 \
fonts-freefont-ttf \ fonts-freefont-ttf \
xvfb \ xvfb \
innoextract \ innoextract \
curl \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN printf '#!/bin/sh\nset -e\nset -u\nexport HOME=/config\nexec wine explorer "/desktop=casanova,${DISPLAY_WIDTH:-1920}x${DISPLAY_HEIGHT:-1080}" "C:/Program Files (x86)/CASAnova/CASAnova.exe"\n' > /startapp.sh \ RUN printf '#!/bin/sh\nset -e\nset -u\nexport HOME=/config\nexec wine explorer "/desktop=casanova,${DISPLAY_WIDTH:-1920}x${DISPLAY_HEIGHT:-1080}" "C:/Program Files (x86)/CASAnova/CASAnova.exe"\n' > /startapp.sh \
&& chmod +x /startapp.sh && chmod +x /startapp.sh
RUN printf '<Type>normal</Type>\n' > /etc/openbox/main-window-selection.xml
# https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-siegen.de/softlab/download/CASAnova_Setup.exe # https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-siegen.de/softlab/download/CASAnova_Setup.exe
RUN curl -fsSL "https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-siegen.de/softlab/download/CASAnova_Setup.exe" -o /tmp/CASAnova_Setup.exe \ COPY CASAnova_Setup.exe /tmp/CASAnova_Setup.exe
&& mkdir -p "$WINEPREFIX" \ RUN mkdir -p "$WINEPREFIX" \
&& xvfb-run sh -c 'wineboot --init && wineserver -w' \ && xvfb-run sh -c 'wineboot --init && wineserver -w' \
&& innoextract -d /tmp/casanova /tmp/CASAnova_Setup.exe \ && innoextract -d /tmp/casanova /tmp/CASAnova_Setup.exe \
&& mkdir -p "$WINEPREFIX/drive_c/Program Files (x86)" \ && mkdir -p "$WINEPREFIX/drive_c/Program Files (x86)" \
......
...@@ -7,7 +7,12 @@ ...@@ -7,7 +7,12 @@
help: ## Show this help. help: ## Show this help.
@egrep -h '(\s##\s|^##\s)' $(MAKEFILE_LIST) | egrep -v '^--' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m %-35s\033[0m %s\n", $$1, $$2}' @egrep -h '(\s##\s|^##\s)' $(MAKEFILE_LIST) | egrep -v '^--' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m %-35s\033[0m %s\n", $$1, $$2}'
build: ## Build the Docker image. INSTALLER_URL = https://web.archive.org/web/20070611110850fw_/http://nesa1.uni-siegen.de/softlab/download/CASAnova_Setup.exe
download_setup_exe: ## Downloads installer if missing
@[ -f CASAnova_Setup.exe ] || { echo "${green}Downloading CASAnova_Setup.exe...${no_color}"; wget "$(INSTALLER_URL)" -O CASAnova_Setup.exe; }
build: download_setup_exe ## Build the Docker image (downloads installer if missing).
@echo "${green}Building image...${no_color}" @echo "${green}Building image...${no_color}"
docker compose build docker compose build
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment