comparison build_release @ 812:574495372d1c

Finish OS X support in build_release script. Fix a name conflict in vgmplay on OS X. Call set_exe_str in vgmplay and stateview
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 21:18:44 -0700
parents b1a09ef90755
children 4cbc349a82a9
comparison
equal deleted inserted replaced
811:b1a09ef90755 812:574495372d1c
29 if [ $OS = "Windows" ]; then 29 if [ $OS = "Windows" ]; then
30 binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe SDL2.dll" 30 binaries="dis.exe zdis.exe stateview.exe vgmplay.exe blastem.exe SDL2.dll"
31 cmd="wine blastem.exe" 31 cmd="wine blastem.exe"
32 txt=".txt" 32 txt=".txt"
33 else 33 else
34 binaries="dis zdis stateview vgmplay blastem termhelper lib" 34 if [ $OS = "Darwin" ]; then
35 binaries="dis zdis stateview vgmplay blastem termhelper Frameworks"
36 else
37 binaries="dis zdis stateview vgmplay blastem termhelper lib"
38 fi
35 cmd="./blastem" 39 cmd="./blastem"
36 txt="" 40 txt=""
37 fi 41 fi
38 ver=`$cmd -v | awk '/blastem/ { gsub(/\r/, "", $2); print $2 }'` 42 ver=`$cmd -v | awk '/blastem/ { gsub(/\r/, "", $2); print $2 }'`
39 if [ $OS = "Windows" ]; then 43 if [ $OS = "Windows" ]; then
49 mkdir "$dir" 53 mkdir "$dir"
50 cp -r $binaries shaders default.cfg rom.db "$dir" 54 cp -r $binaries shaders default.cfg rom.db "$dir"
51 for file in README COPYING CHANGELOG; do 55 for file in README COPYING CHANGELOG; do
52 cp "$file" "$dir"/"$file$txt" 56 cp "$file" "$dir"/"$file$txt"
53 done 57 done
54 cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt 58 if [ $OS = "Darwin" ]; then
59 cp SDL-LICENSE "$dir"
60 else
61 cp sdl/COPYING.txt "$dir"/SDL-LICENSE$txt
62 fi
55 cp glew/LICENSE.txt "$dir"/GLEW-LICENSE$txt 63 cp glew/LICENSE.txt "$dir"/GLEW-LICENSE$txt
56 64
57 if [ $OS = "Windows" ]; then 65 if [ $OS = "Windows" ]; then
58 rm -f "${dir}.zip" 66 rm -f "${dir}.zip"
59 zip -r "${dir}.zip" "$dir" 67 zip -r "${dir}.zip" "$dir"