fixed path to look for SDL2 on OS X

This commit is contained in:
H-M-H 2016-05-26 21:13:27 +02:00
parent 3e06b569ce
commit 9ca7651cb1

View file

@ -132,7 +132,7 @@ if use_bundle:
#shutil.copy("other/icons/Teeworlds.icns", clientbundle_resource_dir)
shutil.copy(name+exe_ext, clientbundle_bin_dir)
os.system("install_name_tool -change /opt/X11/lib/libfreetype.6.dylib @executable_path/../Frameworks/libfreetype.6.dylib " + binary_path)
os.system("install_name_tool -change /Library/Frameworks/SDL2.framework/SDL2 @executable_path/../Frameworks/SDL2.framework/SDL2 " + binary_path)
os.system("install_name_tool -change @rpath/SDL2.framework/Versions/A/SDL2 @executable_path/../Frameworks/SDL2.framework/SDL2 " + binary_path)
os.system("cp -R /Library/Frameworks/SDL2.framework " + clientbundle_framework_dir)
os.system("cp /opt/X11/lib/libfreetype.6.dylib " + clientbundle_framework_dir)
file(os.path.join(clientbundle_content_dir, "Info.plist"), "w").write("""