Browse Source

Change access to build share, improved.

tags/0.7.10RC1
shypike 12 years ago
parent
commit
a3284e12d2
  1. 9
      make_dmg.py
  2. 2
      package.py

9
make_dmg.py

@ -39,9 +39,14 @@ build_folders = (
)
# Check presense of all builds
sharepath = os.environ.get('SHARE')
if not (sharepath and os.path.exists(sharepath)):
print 'Build share not defined or not found'
exit(1)
build_paths = []
for build in builds:
path = os.path.join(os.environ['HOME'], 'project/osx/%s-%s.cpio' % (prod, build))
path = os.path.join(sharepath,'%s-%s.cpio' % (prod, build))
if os.path.exists(path):
build_paths.append(path)
else:
@ -100,4 +105,4 @@ print 'Make image internet-enabled'
os.system("hdiutil internet-enable %s" % fileDmg)
print 'Copy GZ file'
os.system('cp ~/project/osx/%s .' % fileOSr)
os.system('cp "%s" .' % os.path.join(sharepath, fileOSr))

2
package.py

@ -461,7 +461,7 @@ if target == 'app':
if OSX_ML:
print 'Create src %s' % fileOSr
delete_files(fileOSr)
os.system('tar -czf %s --exclude ".git*" --exclude "sab*.zip" --exclude "SAB*.tar.gz" --exclude "*.cmd" --exclude "*.pyc" '
os.system('tar -czf "%s" --exclude ".git*" --exclude "sab*.zip" --exclude "SAB*.tar.gz" --exclude "*.cmd" --exclude "*.pyc" '
'--exclude "*.sparseimage*" --exclude "dist" --exclude "build" --exclude "*.nsi" --exclude "win" --exclude "*.dmg" '
'./ >/dev/null' % os.path.join(dest_path, fileOSr) )

Loading…
Cancel
Save