On OS X, create a release dmg if bundle=True like on Linux.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5513 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang 2010-05-27 03:51:00 +00:00
parent d0a79d8cd1
commit 0119497f3a
1 changed files with 11 additions and 7 deletions

View File

@ -501,11 +501,15 @@ else:
env.Alias('install', env['prefix'])
if env['bundle']:
# Make tar ball (TODO put inside normal dir)
tar_env = env.Clone()
tarball = tar_env.Tar('dolphin-'+rev +'.tar.bz2', env['prefix'])
tar_env.Append(TARFLAGS='-j',
TARCOMSTR="Creating release tarball")
if sys.platform == 'linux2':
# Make tar ball (TODO put inside normal dir)
tar_env = env.Clone()
tarball = tar_env.Tar('dolphin-'+rev +'.tar.bz2', env['prefix'])
tar_env.Append(TARFLAGS='-j', TARCOMSTR="Creating release tarball")
elif sys.platform == 'darwin':
env.Command('.', env['binary_dir'] +
'Dolphin.app/Contents/MacOS/Dolphin', './osx_make_dmg.sh')
#TODO clean all bundles
#env.Clean(all, 'dolphin-*' + '.tar.bz2', 'Binary/Dolphin-r*' + '.dmg')
#env.Clean(all, 'dolphin-*' + '.tar.bz2')
#env.Clean(all, 'Binary/Dolphin-r*' + '.dmg')