Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/cmake/create_dmg.py')
-rwxr-xr-xintern/cycles/cmake/create_dmg.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/intern/cycles/cmake/create_dmg.py b/intern/cycles/cmake/create_dmg.py
new file mode 100755
index 00000000000..bba7f8d3509
--- /dev/null
+++ b/intern/cycles/cmake/create_dmg.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+
+import os
+import string
+import sys
+
+name = string.replace(sys.argv[1], ".zip", "")
+
+os.system("rm -f %s.dmg" % (name))
+os.system("mkdir -p /tmp/cycles_dmg")
+os.system("rm /tmp/cycles_dmg/*")
+os.system("cp %s.zip /tmp/cycles_dmg/" % (name))
+os.system("/usr/bin/hdiutil create -fs HFS+ -srcfolder /tmp/cycles_dmg -volname %s %s.dmg" % (name, name))
+