fixed dist dmg source dir name

This commit is contained in:
Nick Bolton 2012-07-29 21:23:47 +00:00
parent e8239d6297
commit f11f9c5eb6
1 changed files with 4 additions and 3 deletions

View File

@ -638,21 +638,22 @@ class InternalCommands:
def distMac(self): def distMac(self):
dir = self.getGenerator().binDir dir = self.getGenerator().binDir
dist = dir + "/Synergy" name = "Synergy"
dist = dir + "/" + name
# ensure dist dir is clean # ensure dist dir is clean
if os.path.exists(dist): if os.path.exists(dist):
os.rmdir(dist) os.rmdir(dist)
os.makedirs(dist) os.makedirs(dist)
shutil.copytree(dir + "/Synergy.app", dist + "/Synergy.app") shutil.copytree(dir + "/" + name + ".app", dist + "/" + name + ".app")
fileName = "%s-%s-%s.dmg" % ( fileName = "%s-%s-%s.dmg" % (
self.project, self.project,
self.getVersionFromCmake(), self.getVersionFromCmake(),
self.getMacPackageName()) self.getMacPackageName())
cmd = "hdiutil create " + fileName + " -srcfolder ./dist/ -ov" cmd = "hdiutil create " + fileName + " -srcfolder ./" + name + "/ -ov"
self.try_chdir(dir) self.try_chdir(dir)
err = os.system(cmd) err = os.system(cmd)