From 4aab1d23e6c3822be365eb218818f4ed49bb2ee4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 25 Nov 2013 08:19:18 +0100 Subject: build: work around bug in waf's bundle installation waf wrongly installs resources to BundleRoot/Resources instead of BundleRoot/Contents/Resources. Will post a patch to them later. Either way, this must worked around until the next waf patch release. --- wscript_build.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index c1d5edcc4e..c20d235522 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -419,6 +419,11 @@ def build(ctx): resources = [node.srcpath() for node in resources_nodes] cprog_kwargs['mac_resources'] = resources + for resource in resources: + res_basename = os.path.basename(resource) + install_name = '/mpv.app/Contents/Resources/' + res_basename + ctx.install_as(ctx.env.BINDIR + install_name, resource) + ctx( target = "mpv", source = ctx.filtered_sources(sources), -- cgit v1.2.3