diff --git a/other/icons/Teewars.icns b/other/icons/Teewars.icns new file mode 100644 index 000000000..f48e7b906 Binary files /dev/null and b/other/icons/Teewars.icns differ diff --git a/scripts/make_release.py b/scripts/make_release.py index 1ee1fb2d0..211bb5b0a 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"