summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-10 18:32:30 +0200
committerJose <jose@zeroc.com>2014-10-10 18:32:30 +0200
commit9d5364b6ba6735a3a657b67839ab5382dd4dc968 (patch)
tree3e5ec75418c5aad3c224a103fe12df10db35c9ae
parentAdded OS X ThirdParty isntaller (diff)
downloadice-9d5364b6ba6735a3a657b67839ab5382dd4dc968.tar.bz2
ice-9d5364b6ba6735a3a657b67839ab5382dd4dc968.tar.xz
ice-9d5364b6ba6735a3a657b67839ab5382dd4dc968.zip
OS ThirdParty installer minor fixes
-rw-r--r--distribution/src/mac/ThirdParty/build.py54
-rw-r--r--distribution/src/mac/ThirdParty/resources/SOURCES.txt8
2 files changed, 35 insertions, 27 deletions
diff --git a/distribution/src/mac/ThirdParty/build.py b/distribution/src/mac/ThirdParty/build.py
index 4385216e5d9..10e9c6d5848 100644
--- a/distribution/src/mac/ThirdParty/build.py
+++ b/distribution/src/mac/ThirdParty/build.py
@@ -2,43 +2,43 @@
import os, sys
-verbose = True
+rootDir = "/opt/Ice-@ver@-ThirdParty"
volname = "ThirdParty-@ver@"
-def runCommand(cmd, verbose):
- if len(cmd) > 0:
- if verbose:
- print(cmd)
- if os.system(cmd) != 0:
- sys.exit(1)
+def runCommand(cmd):
+ print(cmd)
+ if os.system(cmd) != 0:
+ sys.exit(1)
-runCommand("mkdir -p packages", verbose)
+for f in ["packages", "scratch.dmg.sparseimage", ("%s.dmg" % volname), ("installer/%s.pkg" % volname)]:
+ runCommand("rm -rf %s" % f)
-runCommand("pkgbuild --root /opt/Ice-@ver@-ThirdParty " +
+runCommand("mkdir -p packages")
+
+#
+# Copy README,THIRD_PARTY_LICENSE and SOURCES to the root dir
+#
+for f in ["README.txt", "SOURCES.txt", "THIRD_PARTY_LICENSE.txt"]:
+ runCommand("cp resources/%s %s" % (f, rootDir))
+
+runCommand("pkgbuild --root " + rootDir + " " +
"--identifier=com.zeroc.ice@ver@-thirdparty " +
"--install-location=/Library/Developer/Ice-@ver@-ThirdParty " +
- "packages/com.zeroc.ice-@ver@-thirdParty.pkg", verbose)
+ "packages/com.zeroc.ice-@ver@-thirdParty.pkg")
runCommand("productbuild --distribution=Distribution.xml " +
"--package-path=packages " +
- "--resources=resources installer/ThirdParty-@ver@.pkg", verbose)
-
-runCommand("rm -rf packages", verbose)
-
-if os.path.exists("scratch.dmg.sparseimage"):
- os.remove("scratch.dmg.sparseimage")
-
-runCommand("hdiutil create scratch.dmg -volname \"%s\" -type SPARSE -fs HFS+" % volname, verbose)
-runCommand("hdid scratch.dmg.sparseimage", verbose)
-runCommand("ditto -rsrc installer \"/Volumes/%s\"" % volname, verbose)
-runCommand("hdiutil detach \"/Volumes/%s\"" % volname, verbose)
+ "--resources=resources installer/%s.pkg" % volname)
+runCommand("rm -rf packages")
-if os.path.exists(volname + ".dmg"):
- os.remove(volname + ".dmg")
+runCommand("hdiutil create scratch.dmg -volname \"%s\" -type SPARSE -fs HFS+" % volname)
+runCommand("hdid scratch.dmg.sparseimage")
+runCommand("ditto -rsrc installer \"/Volumes/%s\"" % volname)
+runCommand("hdiutil detach \"/Volumes/%s\"" % volname)
-runCommand("hdiutil convert scratch.dmg.sparseimage -format UDZO -o %s.dmg -imagekey zlib-devel=9" % volname, verbose)
-runCommand("rm scratch.dmg.sparseimage", verbose)
+runCommand("hdiutil convert scratch.dmg.sparseimage -format UDZO -o %s.dmg -imagekey zlib-devel=9" % volname)
+runCommand("rm scratch.dmg.sparseimage")
-os.remove("installer/ThirdParty-@ver@.pkg")
+runCommand("rm -rf installer/%s.pkg" % volname)
-print("ok")
+print("Package %s.dmg created ok" % volname)
diff --git a/distribution/src/mac/ThirdParty/resources/SOURCES.txt b/distribution/src/mac/ThirdParty/resources/SOURCES.txt
new file mode 100644
index 00000000000..b5ce325d99f
--- /dev/null
+++ b/distribution/src/mac/ThirdParty/resources/SOURCES.txt
@@ -0,0 +1,8 @@
+Source Code
+-----------
+
+The source distributions of Ice, Berkeley DB, MCPP, JGoodies Common,
+JGoodies Forms and JGoodies Looks used to build this distribution
+can be downloaded at no cost from
+
+ http://www.zeroc.com/download.html