diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-04-07 22:53:23 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-04-07 22:53:23 -0700 |
commit | f56634ea9e3036a1e01f3a783b46c675d3484ff8 (patch) | |
tree | 331a89c08c4f7c8dc8a063d69c6da94c641530d4 | |
parent | 00b3328fa2c8aaad2583e496f14b08d8e8bbec0f (diff) |
Update build_release script to support Win64
-rwxr-xr-x | build_release | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/build_release b/build_release index 126d346..95ac07f 100755 --- a/build_release +++ b/build_release @@ -25,10 +25,16 @@ if [ $OS = "Linux" ]; then cd .. fi echo "Path is: $PATH" -make PORTABLE=1 clean all +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 -if [ $OS = "Windows" ]; then - binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe SDL2.dll" +if [ $OS = "Windows" -o $OS = "Win64" ]; then + binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe $SDLDLLPATH/SDL2.dll" verstr=`sed -E -n 's/^[^B]+BLASTEM_VERSION "([^"]+)"/blastem \1/p' blastem.c` txt=".txt" else @@ -45,6 +51,8 @@ binaries="$binaries menu.bin" 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 @@ -65,7 +73,7 @@ else 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" |