git repos / blockattack-game

commit f1a2332d

sago007 · 2017-03-01 18:24
f1a2332dc7c38e9baf2fb33af01e49dd29c9d2dc patch · browse files
parent 5ec62ecc4f599b0c5e8b266952e7ae0ea5507a72

Added a Dockerfile for generating both Windows packages

Changed files

A source/misc/docker/Dockerfile.WindoesBuild
diff --git a/source/misc/docker/Dockerfile.WindoesBuild b/source/misc/docker/Dockerfile.WindoesBuild new file mode 100644 index 0000000..9e65974 --- /dev/null +++ b/source/misc/docker/Dockerfile.WindoesBuild
@@ -0,0 +1,32 @@
+FROM sago007/docker_blockattack
+
+RUN mkdir -p /staging/blockattack-game
+
+RUN mkdir -p /staging/package/
+
+RUN mkdir -p /output
+
+COPY . /staging/blockattack-game
+
+ENV BLOCKATTACK_VERSION 2.1.0-SNAPSHOT
+
+RUN cd /staging/blockattack-game && \
+./packdata.sh && \
+cp source/misc/travis_help/utf8_v2_3_4/source/utf8.h source/code/ && \
+cp -r source/misc/travis_help/utf8_v2_3_4/source/utf8 source/code/ && \
+i686-w64-mingw32.static-cmake . && \
+make && \
+cd windows\ installer/ && \
+makensis install_script.nsi && \
+mv Setup.exe /output/blockattack-installer-${BLOCKATTACK_VERSION}.exe && \
+mkdir /staging/package/blockattack-${BLOCKATTACK_VERSION} && \
+cd /staging/package/blockattack-${BLOCKATTACK_VERSION} && \
+cp /staging/blockattack-game/Game/blockattack.data ./ && \
+cp /staging/blockattack-game/Game/blockattack.exe ./ && \
+cp /staging/blockattack-game/COPYING ./COPYING.txt && \
+cp -r /staging/blockattack-game/source/misc/translation/locale ./ && \
+echo "[InternetShortcut]" > "Block\ Attack\ -\ Rise\ Of\ the\ Blocks.url" && \
+echo "URL=http://www.blockattack.net" >> "Block\ Attack\ -\ Rise\ Of\ the\ Blocks.url" && \
+cd /staging/package/ && \
+zip -r /output/blockattack-${BLOCKATTACK_VERSION}-windows-no-installer.zip blockattack-${BLOCKATTACK_VERSION} && \
+cd /output && chown nobody * && chmod 666 * && ls -lh