about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoel de Vahl <joel@stalverk80.se>2007-12-15 13:01:09 +0000
committerJoel de Vahl <joel@stalverk80.se>2007-12-15 13:01:09 +0000
commitbff504662c8bfa514213000837d8d80d8bea740a (patch)
tree9a8aff9d5d0350ac09822cd60744bef9132f3156
parentdf073d5d3d763f8ad6782b30860e392100932ae2 (diff)
downloadzcatch-bff504662c8bfa514213000837d8d80d8bea740a.tar.gz
zcatch-bff504662c8bfa514213000837d8d80d8bea740a.zip
Make releasefor osx.
-rw-r--r--other/icons/Teewars.icnsbin0 -> 67389 bytes
-rw-r--r--scripts/make_release.py28
2 files changed, 26 insertions, 2 deletions
diff --git a/other/icons/Teewars.icns b/other/icons/Teewars.icns
new file mode 100644
index 00000000..f48e7b90
--- /dev/null
+++ b/other/icons/Teewars.icns
Binary files differdiff --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("""
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+        <key>CFBundleDevelopmentRegion</key>
+        <string>English</string>
+        <key>CFBundleExecutable</key>
+        <string>teewars</string>
+        <key>CFBundleIconFile</key>
+        <string>Teewars</string>
+        <key>CFBundleInfoDictionaryVersion</key>
+        <string>6.0</string>
+        <key>CFBundlePackageType</key>
+        <string>APPL</string>
+        <key>CFBundleSignature</key>
+        <string>????</string>
+        <key>CFBundleVersion</key>
+        <string>%s</string>
+</dict>
+</plist>
+	""" % (version))
+	file(os.path.join(bundle_content_dir, "PkgInfo"), "w").write("APPL????")
 
 if use_zip:
 	print "making zip archive"