diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-11 20:37:43 +0400 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2010-07-11 20:37:43 +0400 |
commit | 0cf351ea5dd533f1e239cd77fed23b91b308cad1 (patch) | |
tree | 063479ccb1af1f0f4cbfc87e6f6d5fc121e78c13 /macx/scripts | |
parent | e925ec60fe32633157ab0e62d0c43227c383ce86 (diff) |
Only copy mumble-g15-helper to app bundle if it exists.
Diffstat (limited to 'macx/scripts')
-rwxr-xr-x | macx/scripts/osxdist.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/macx/scripts/osxdist.py b/macx/scripts/osxdist.py index 2f3f2abf8..6811f2c51 100755 --- a/macx/scripts/osxdist.py +++ b/macx/scripts/osxdist.py @@ -219,10 +219,13 @@ class AppBundle(object): ''' Copy the Mumble G15 helper daemon into our Mumble app bundle. ''' - print ' * Copying G15 helper' - src = os.path.join(self.bundle, '..', 'mumble-g15-helper') - dst = os.path.join(self.bundle, 'Contents', 'MacOS', 'mumble-g15-helper') - shutil.copy(src, dst) + if os.path.exists(os.path.join(self.bundle, '..', 'mumble-g15-helper')): + print ' * Copying G15 helper' + src = os.path.join(self.bundle, '..', 'mumble-g15-helper') + dst = os.path.join(self.bundle, 'Contents', 'MacOS', 'mumble-g15-helper') + shutil.copy(src, dst) + else: + print ' * No G15 helper found, skipping...' def copy_resources(self, rsrcs): ''' |