changed mac paths for dist and improved mac package structure
This commit is contained in:
parent
f9374cbb2b
commit
b7c72dd12c
|
@ -47,7 +47,9 @@ class InternalCommands:
|
||||||
doxygen_filename = 'doxygen.cfg'
|
doxygen_filename = 'doxygen.cfg'
|
||||||
|
|
||||||
macZipFiles = [
|
macZipFiles = [
|
||||||
'synergyc', 'synergys',
|
'src/cmd/synergyc/synergyc',
|
||||||
|
'src/cmd/synergys/synergys',
|
||||||
|
'../QSynergy.app',
|
||||||
'../../doc/synergy.conf.example',
|
'../../doc/synergy.conf.example',
|
||||||
'../../doc/MacReadme.txt']
|
'../../doc/MacReadme.txt']
|
||||||
|
|
||||||
|
@ -498,18 +500,30 @@ class InternalCommands:
|
||||||
|
|
||||||
version = self.getVersionFromCmake()
|
version = self.getVersionFromCmake()
|
||||||
zipFile = (self.project + '-' + version + '-' +
|
zipFile = (self.project + '-' + version + '-' +
|
||||||
self.getMacPackageName() + '.zip')
|
self.getMacPackageName())
|
||||||
|
|
||||||
# nb: temporary fix (just distribute a zip)
|
# nb: temporary fix (just distribute a zip)
|
||||||
bin = self.getBinDir(unixTarget)
|
bin = self.getBinDir(unixTarget)
|
||||||
self.try_chdir(bin)
|
self.try_chdir(bin)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
import shutil
|
||||||
|
if os.path.exists(zipFile):
|
||||||
|
shutil.rmtree(zipFile)
|
||||||
|
|
||||||
|
os.makedirs(zipFile)
|
||||||
|
|
||||||
for f in self.macZipFiles:
|
for f in self.macZipFiles:
|
||||||
if not os.path.exists(f):
|
if not os.path.exists(f):
|
||||||
raise Exception('File does not exist: ' + f)
|
raise Exception('File does not exist: ' + f)
|
||||||
|
elif os.path.isdir(f):
|
||||||
|
dirLastSplit = f.split('/')
|
||||||
|
dirLast = dirLastSplit[len(dirLastSplit) - 1]
|
||||||
|
shutil.copytree(f, zipFile + '/' + dirLast)
|
||||||
|
else:
|
||||||
|
shutil.copy2(f, zipFile + '/')
|
||||||
|
|
||||||
zipCmd = ('zip ' + zipFile + ' ' + ' '.join(self.macZipFiles));
|
zipCmd = ('zip -r ' + zipFile + '.zip ' + zipFile);
|
||||||
|
|
||||||
print 'Creating package: ' + zipCmd
|
print 'Creating package: ' + zipCmd
|
||||||
err = os.system(zipCmd)
|
err = os.system(zipCmd)
|
||||||
|
|
Loading…
Reference in New Issue