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

create_dmg.py « cmake « cycles « intern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bba7f8d3509035829f395b7a30a48f04c44fb357 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))