aboutsummaryrefslogtreecommitdiff
path: root/scripts/windows/Dockerfile
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2019-07-02 21:11:59 -0500
committeroldmud0 <oldmud0@users.noreply.github.com>2019-07-02 21:11:59 -0500
commitf489f2064c5988a7b7ac2802e95732235a69c554 (patch)
tree0086e4882c25781aad21506386e6552e455ea5b6 /scripts/windows/Dockerfile
parent944b0be83b23d624cb7a0539104b45b30c857885 (diff)
parent93b482cbc794c343d9f61a8c37bf900dfd925d1c (diff)
Merge branch 'ci' into 'master'
Diffstat (limited to 'scripts/windows/Dockerfile')
-rw-r--r--scripts/windows/Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/windows/Dockerfile b/scripts/windows/Dockerfile
new file mode 100644
index 00000000..90d6c27e
--- /dev/null
+++ b/scripts/windows/Dockerfile
@@ -0,0 +1,17 @@
+FROM oldmud0/mxe-qt:5.12.1-win32-static-posix
+#FROM fffaraz/qt:windows
+
+ENV TARGET_SPEC i686-w64-mingw32.static.posix
+
+# Build Discord RPC statically
+RUN git clone https://github.com/discordapp/discord-rpc
+WORKDIR discord-rpc/build
+RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mxe/usr/${TARGET_SPEC}
+RUN /opt/mxe/usr/bin/${TARGET_SPEC}-cmake --build . --config Release --target install
+WORKDIR ../..
+
+# Build QtApng statically
+RUN git clone https://github.com/Skycoder42/QtApng
+WORKDIR QtApng
+RUN /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake && make qmake_all && make && make install
+WORKDIR ..