comparison build_release @ 1830:2f3600e204b0

Update build_release script to support Win64
author Michael Pavone <pavone@retrodev.com>
date Sun, 07 Apr 2019 22:53:23 -0700
parents 05c34078e1ac
children 93960907807a
comparison
equal deleted inserted replaced
1829:a79e92929044 1830:2f3600e204b0
23 cd glew 23 cd glew
24 make all 24 make all
25 cd .. 25 cd ..
26 fi 26 fi
27 echo "Path is: $PATH" 27 echo "Path is: $PATH"
28 make PORTABLE=1 clean all 28 if [ $OS = "Win64" ]; then
29 make PORTABLE=1 OS=Windows CPU=x86_64 clean all
30 SDLDLLPATH=sdl/x86_64-w64-mingw32/bin
31 else
32 make PORTABLE=1 clean all
33 SDLDLLPATH=sdl/i686-w64-mingw32/bin
34 fi
29 make menu.bin 35 make menu.bin
30 if [ $OS = "Windows" ]; then 36 if [ $OS = "Windows" -o $OS = "Win64" ]; then
31 binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe SDL2.dll" 37 binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe $SDLDLLPATH/SDL2.dll"
32 verstr=`sed -E -n 's/^[^B]+BLASTEM_VERSION "([^"]+)"/blastem \1/p' blastem.c` 38 verstr=`sed -E -n 's/^[^B]+BLASTEM_VERSION "([^"]+)"/blastem \1/p' blastem.c`
33 txt=".txt" 39 txt=".txt"
34 else 40 else
35 binaries="dis zdis stateview vgmplay blastem termhelper" 41 binaries="dis zdis stateview vgmplay blastem termhelper"
36 if [ $OS = "Darwin" ]; then 42 if [ $OS = "Darwin" ]; then
43 fi 49 fi
44 binaries="$binaries menu.bin" 50 binaries="$binaries menu.bin"
45 ver=`echo $verstr | awk '/blastem/ { gsub(/\r/, "", $2); print $2 }'` 51 ver=`echo $verstr | awk '/blastem/ { gsub(/\r/, "", $2); print $2 }'`
46 if [ $OS = "Windows" ]; then 52 if [ $OS = "Windows" ]; then
47 suffix='-win32' 53 suffix='-win32'
54 elif [ $OS = "Win64" ]; then
55 suffix='-win64'
48 elif [ $OS = "Darwin" ]; then 56 elif [ $OS = "Darwin" ]; then
49 suffix='-osx' 57 suffix='-osx'
50 else 58 else
51 suffix=`file ./blastem | sed -E 's/^[^:]*: [^ ]* ([0-9]*)-bit .*/\1/'` 59 suffix=`file ./blastem | sed -E 's/^[^:]*: [^ ]* ([0-9]*)-bit .*/\1/'`
52 fi 60 fi
63 else 71 else
64 cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt 72 cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt
65 fi 73 fi
66 cp glew/LICENSE.txt "$dir"/GLEW-LICENSE$txt 74 cp glew/LICENSE.txt "$dir"/GLEW-LICENSE$txt
67 75
68 if [ $OS = "Windows" ]; then 76 if [ $OS = "Windows" -o $OS = "Win64" ]; then
69 rm -f "${dir}.zip" 77 rm -f "${dir}.zip"
70 zip -r "${dir}.zip" "$dir" 78 zip -r "${dir}.zip" "$dir"
71 echo "${dir}.zip" 79 echo "${dir}.zip"
72 else 80 else
73 rm -f "${dir}.tar.gz" 81 rm -f "${dir}.tar.gz"