Commit 25cb779e authored by Thiago Santos's avatar Thiago Santos Committed by Sebastian Dröge
Browse files

osx: packagemaker: look into applications dir for packagemaker

In newer osx versions, the packagemaker might be installed manually
as it doesn't seem to come bundled with XCode anymore.

In this case, the usual location is for it to be installed at
the Applications directory. This patch makes the packager search
for it in the old directory and in Applications
parent bac5f041
......@@ -16,14 +16,26 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
import os
from cerbero.utils import shell
PACKAGE_MAKER_PATHS = [
'/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/',
'/Applications/PackageMaker.app/Contents/MacOS/'
]
def get_package_maker_path():
for p in PACKAGE_MAKER_PATHS:
if os.path.exists(p):
return p
return None
class PackageMaker(object):
''' Wrapper for the PackageMaker application '''
PACKAGE_MAKER_PATH = \
'/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/'
PACKAGE_MAKER_PATH = get_package_maker_path()
CMD = './PackageMaker'
def create_package(self, root, pkg_id, version, title, output_file,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment