From bff504662c8bfa514213000837d8d80d8bea740a Mon Sep 17 00:00:00 2001 From: Joel de Vahl Date: Sat, 15 Dec 2007 13:01:09 +0000 Subject: Make releasefor osx. --- scripts/make_release.py | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'scripts/make_release.py') diff --git a/scripts/make_release.py b/scripts/make_release.py index 1ee1fb2d..211bb5b0 100644 --- a/scripts/make_release.py +++ b/scripts/make_release.py @@ -79,7 +79,7 @@ if include_src: if use_bundle: bundle_content_dir = os.path.join(package_dir, "Teewars.app/Contents") - bundle_bin_dir = os.path.join(bundle_content_dir, "MaxOS") + bundle_bin_dir = os.path.join(bundle_content_dir, "MacOS") bundle_resource_dir = os.path.join(bundle_content_dir, "Resources") os.mkdir(os.path.join(package_dir, "Teewars.app")) os.mkdir(bundle_content_dir) @@ -87,7 +87,31 @@ if use_bundle: os.mkdir(bundle_resource_dir) os.mkdir(os.path.join(bundle_resource_dir, "data")) copydir("data", bundle_resource_dir) - shutil.copy("teewars"+ext_ext, bundle_bin_dir) + shutil.copy("other/icons/Teewars.icns", bundle_resource_dir) + shutil.copy("teewars"+exe_ext, bundle_bin_dir) + file(os.path.join(bundle_content_dir, "Info.plist"), "w").write(""" + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + teewars + CFBundleIconFile + Teewars + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + %s + + + """ % (version)) + file(os.path.join(bundle_content_dir, "PkgInfo"), "w").write("APPL????") if use_zip: print "making zip archive" -- cgit 1.4.1