Mac make_release changes

This commit is contained in:
GreYFoX 2011-04-13 01:16:58 +02:00 committed by GreYFoX
parent dd70b687ed
commit 989d69a5b2
5 changed files with 14 additions and 14 deletions

View file

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View file

Before

Width:  |  Height:  |  Size: 113 KiB

After

Width:  |  Height:  |  Size: 113 KiB

View file

@ -1 +1 @@
50h ICON "DDRace_srv.ico"
50h ICON "DDRace-Server.ico"

View file

@ -1 +1 @@
ID ICON "DDRace_srv.ico"
ID ICON "DDRace-Server.ico"

View file

@ -85,23 +85,23 @@ if include_src:
shutil.copy("configure.lua", package_dir)
if use_bundle:
os.system("lipo -create -output "+name+"_srv "+name+"_srv"+"_ppc "+name+"_srv"+"_x86")
os.system("lipo -create -output "+name+"-Server "+name+"-Server"+"_ppc "+name+"-Server"+"_x86")
os.system("lipo -create -output "+name+" "+name+"_ppc "+name+"_x86")
os.system("lipo -create -output serverlaunch serverlaunch_ppc serverlaunch_x86")
# create Teeworlds appfolder
clientbundle_content_dir = os.path.join(package_dir, "Teeworlds.app/Contents")
clientbundle_content_dir = os.path.join(package_dir, "DDRace.app/Contents")
clientbundle_bin_dir = os.path.join(clientbundle_content_dir, "MacOS")
clientbundle_resource_dir = os.path.join(clientbundle_content_dir, "Resources")
clientbundle_framework_dir = os.path.join(clientbundle_content_dir, "Frameworks")
os.mkdir(os.path.join(package_dir, "Teeworlds.app"))
os.mkdir(os.path.join(package_dir, "DDRace.app"))
os.mkdir(clientbundle_content_dir)
os.mkdir(clientbundle_bin_dir)
os.mkdir(clientbundle_resource_dir)
os.mkdir(clientbundle_framework_dir)
os.mkdir(os.path.join(clientbundle_resource_dir, "data"))
copydir("data", clientbundle_resource_dir)
shutil.copy("other/icons/Teeworlds.icns", clientbundle_resource_dir)
shutil.copy("other/icons/DDRace.icns", clientbundle_resource_dir)
shutil.copy(name+exe_ext, clientbundle_bin_dir)
os.system("cp -R /Library/Frameworks/SDL.framework " + clientbundle_framework_dir)
file(os.path.join(clientbundle_content_dir, "Info.plist"), "w").write("""
@ -112,9 +112,9 @@ if use_bundle:
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>teeworlds</string>
<string>DDRace</string>
<key>CFBundleIconFile</key>
<string>Teeworlds</string>
<string>DDRace</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
@ -129,10 +129,10 @@ if use_bundle:
file(os.path.join(clientbundle_content_dir, "PkgInfo"), "w").write("APPL????")
# create Teeworlds Server appfolder
serverbundle_content_dir = os.path.join(package_dir, "Teeworlds Server.app/Contents")
serverbundle_content_dir = os.path.join(package_dir, "DDRace-Server.app/Contents")
serverbundle_bin_dir = os.path.join(serverbundle_content_dir, "MacOS")
serverbundle_resource_dir = os.path.join(serverbundle_content_dir, "Resources")
os.mkdir(os.path.join(package_dir, "Teeworlds Server.app"))
os.mkdir(os.path.join(package_dir, "DDRace-Server.app"))
os.mkdir(serverbundle_content_dir)
os.mkdir(serverbundle_bin_dir)
os.mkdir(serverbundle_resource_dir)
@ -140,7 +140,7 @@ if use_bundle:
os.mkdir(os.path.join(serverbundle_resource_dir, "data/maps"))
os.mkdir(os.path.join(serverbundle_resource_dir, "data/mapres"))
copydir("data/maps", serverbundle_resource_dir)
shutil.copy("other/icons/Teeworlds_srv.icns", serverbundle_resource_dir)
shutil.copy("other/icons/DDRace-Server.icns", serverbundle_resource_dir)
shutil.copy(name+"-Server"+exe_ext, serverbundle_bin_dir)
shutil.copy("serverlaunch"+exe_ext, serverbundle_bin_dir + "/"+name+"_server")
file(os.path.join(serverbundle_content_dir, "Info.plist"), "w").write("""
@ -151,9 +151,9 @@ if use_bundle:
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>teeworlds_server</string>
<string>DDRace_Server</string>
<key>CFBundleIconFile</key>
<string>Teeworlds_srv</string>
<string>DDRace-Server</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
@ -185,7 +185,7 @@ if use_gz:
if use_dmg:
print("making disk image")
os.system("rm -f %s.dmg %s_temp.dmg" % (package, package))
os.system("hdiutil create -srcfolder %s -volname Teeworlds -quiet %s_temp" % (package_dir, package))
os.system("hdiutil create -srcfolder %s -volname DDRace -quiet %s_temp" % (package_dir, package))
os.system("hdiutil convert %s_temp.dmg -format UDBZ -o %s.dmg -quiet" % (package, package))
os.system("rm -f %s_temp.dmg" % package)