diff build_release @ 2053:3414a4423de1 segacd

Merge from default
author Michael Pavone <pavone@retrodev.com>
date Sat, 15 Jan 2022 13:15:21 -0800
parents 97bfb6089274
children 92449b47cce8
line wrap: on
line diff
--- a/build_release	Sat Jan 05 00:58:08 2019 -0800
+++ b/build_release	Sat Jan 15 13:15:21 2022 -0800
@@ -25,14 +25,20 @@
 	cd ..
 fi
 echo "Path is: $PATH"
-make PORTABLE=1 clean all
-make menu.bin
-if [ $OS = "Windows" ]; then
-	binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe SDL2.dll"
+if [ $OS = "Win64" ]; then
+	make PORTABLE=1 OS=Windows CPU=x86_64 clean all
+	SDLDLLPATH=sdl/x86_64-w64-mingw32/bin
+else
+	make PORTABLE=1 clean all
+	SDLDLLPATH=sdl/i686-w64-mingw32/bin
+fi
+make menu.bin tmss.md
+if [ $OS = "Windows" -o $OS = "Win64" ]; then
+	binaries="dis.exe zdis.exe vgmplay.exe blastem.exe $SDLDLLPATH/SDL2.dll"
 	verstr=`sed -E -n 's/^[^B]+BLASTEM_VERSION "([^"]+)"/blastem \1/p' blastem.c`
 	txt=".txt"
 else
-	binaries="dis zdis stateview vgmplay blastem termhelper"
+	binaries="dis zdis vgmplay blastem termhelper"
 	if [ $OS = "Darwin" ]; then
 		binaries="$binaries Frameworks"
 	else
@@ -41,10 +47,12 @@
 	verstr=`./blastem -v`
 	txt=""
 fi
-binaries="$binaries menu.bin"
+binaries="$binaries menu.bin tmss.md"
 ver=`echo $verstr | awk '/blastem/ { gsub(/\r/, "", $2); print $2 }'`
 if [ $OS = "Windows" ]; then
 	suffix='-win32'
+elif [ $OS = "Win64" ]; then
+	suffix='-win64'
 elif [ $OS = "Darwin" ]; then
 	suffix='-osx'
 else
@@ -54,18 +62,20 @@
 echo $dir
 rm -rf "$dir"
 mkdir "$dir"
-cp -r $binaries shaders images default.cfg rom.db gamecontrollerdb.txt "$dir"
+cp -r $binaries shaders images default.cfg rom.db gamecontrollerdb.txt systems.cfg "$dir"
 for file in README COPYING CHANGELOG; do
 	cp "$file" "$dir"/"$file$txt"
 done
 if [ $OS = "Darwin" ]; then
 	cp SDL-LICENSE "$dir"
+elif [ $OS = "Windows" -o $OS = "Win64" ]; then
+	cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt
 else
-	cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt
+	cp sdl/LICENSE.txt "$dir"/SDL-LICENSE$txt
 fi
 cp glew/LICENSE.txt "$dir"/GLEW-LICENSE$txt
 
-if [ $OS = "Windows" ]; then
+if [ $OS = "Windows" -o $OS = "Win64" ]; then
 	rm -f "${dir}.zip"
 	zip -r "${dir}.zip" "$dir"
 	echo "${dir}.zip"