Преглед изворни кода

Add Windows x86_64 version to build system.

CatBreeder пре 7 година
родитељ
комит
e87fdf4fec
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 6 1
      build.sh
  2. BIN
      txt2gam64.exe

+ 6 - 1
build.sh

@@ -1,4 +1,5 @@
 #!/usr/bin/env bash
+set -x
 
 # Set those lines to fit your setup.
 # This is where glife.qsp will be copied. If you don't want to move it just comment (#) the line below.
@@ -15,7 +16,11 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
 elif [[ "$OSTYPE" == "darwin"* ]]; then
 	./txt2gam.mac glife.txt "${QSPFILE}" 1> /dev/null
 elif [[ "$OSTYPE" == "msys" ]]; then
-	./txt2gam.exe glife.txt "${QSPFILE}" 1> /dev/null
+	if [[ "$MSYSTEM_CARCH" == "x86_64" ]]; then
+		./txt2gam64.exe glife.txt "${QSPFILE}" 1> /dev/null
+	else
+		./txt2gam.exe glife.txt "${QSPFILE}" 1> /dev/null
+	fi
 fi
 if [ -d "${DESTDIR}" ]; then
 	cp --reflink=auto "${QSPFILE}" "${DESTDIR}"