summaryrefslogtreecommitdiff
path: root/release-windows.bat
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-21 12:35:14 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-21 12:35:14 +0100
commitbea1e688856a1ed3caa74a7ccdb33a7048268cea (patch)
treeb1dcda0015a0e82fdceb6b7b5dc00aad22d92c40 /release-windows.bat
parentf30b94bbcc33a33f141a40618f3ee3aa2b7ac52d (diff)
build work
Diffstat (limited to 'release-windows.bat')
-rw-r--r--release-windows.bat18
1 files changed, 18 insertions, 0 deletions
diff --git a/release-windows.bat b/release-windows.bat
new file mode 100644
index 0000000..e3ca659
--- /dev/null
+++ b/release-windows.bat
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+DEL /S /Q "bin"
+if not exist "release" mkdir "release"
+if not exist "release" mkdir "release/windows"
+DEL /S /Q "release/windows"
+
+cd src
+
+ld -r -b binary -o ../bin/data.o ../data/imgs/en.png ../data/imgs/nl.png ../data/imgs/logo_64.png ../data/fonts/mono.ttf ../data/translations/en-English.mo ../data/translations/nl-Dutch.mo ../data/imgs/list.png ../data/imgs/delete.png ../data/imgs/exclaim.png ../data/imgs/add.png ../data/imgs/set.png
+
+x86_64-w64-mingw32-gcc -Wall -m64 -O3 -Wno-unused-label -Wno-unused-variable mo_edit.c ../bin/data.o -o ../bin/mo-edit.exe ../misc/icon.res -lopengl32 -lkernel32 -lglu32 -lgdi32 -lcomdlg32 -lgdiplus -lole32 -lshlwapi -lwininet
+
+DEL /Q "../bin/data.o"
+
+move /y "../bin/mo-edit.exe" "../release/windows"
+
+cd .. \ No newline at end of file