Debian Codegraph @

source/misc/docker/Dockerfile.WindoesBuild

raw
1 FROM sago007/docker_blockattack
2
3 RUN mkdir -p /staging/blockattack-game
4
5 RUN mkdir -p /staging/package/
6
7 RUN mkdir -p /output
8
9 COPY . /staging/blockattack-game
10
11 ENV BLOCKATTACK_VERSION 2.10.0
12
13 RUN cd /staging/blockattack-game && \
14 ./packdata.sh && ls -lrt source/misc/embedded_libs/fmt-11.0.2 && \
15 i686-w64-mingw32.static-cmake . && \
16 make clean && make && \
17 cd windows\ installer/ && \
18 makensis install_script.nsi && \
19 mv Setup.exe /output/blockattack-installer-${BLOCKATTACK_VERSION}.exe && \
20 mkdir /staging/package/blockattack-${BLOCKATTACK_VERSION} && \
21 cd /staging/package/blockattack-${BLOCKATTACK_VERSION} && \
22 cp /staging/blockattack-game/Game/blockattack.data ./ && \
23 cp /staging/blockattack-game/Game/blockattack.exe ./ && \
24 cp /staging/blockattack-game/COPYING ./COPYING.txt && \
25 mkdir -p mods && cp /staging/blockattack-game/Game/mods/1.3.0.bricks.data ./mods/ && \
26 cp -r /staging/blockattack-game/source/misc/translation/locale ./ && \
27 echo "[InternetShortcut]" > "Block Attack - Rise Of the Blocks.url" && \
28 echo "URL=https://blockattack.net" >> "Block Attack - Rise Of the Blocks.url" && \
29 cd /staging/package/ && \
30 zip -r /output/blockattack-${BLOCKATTACK_VERSION}-windows-no-installer.zip "blockattack-${BLOCKATTACK_VERSION}" && \
31 mv blockattack-${BLOCKATTACK_VERSION} blockattack-itch && \
32 zip -r /output/blockattack-itch-${BLOCKATTACK_VERSION}.zip "blockattack-itch" && \
33 cd /output && chown nobody * && chmod 666 * && ls -lh