diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-25 08:19:18 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-11-25 08:58:31 +0100 |
commit | 4aab1d23e6c3822be365eb218818f4ed49bb2ee4 (patch) | |
tree | d4b41bdb21d5cb203775c006a91bf0a6031f9cc7 | |
parent | 8b6e05adff3cfd760c6439b42d18126b715a1f2d (diff) | |
download | mpv-4aab1d23e6c3822be365eb218818f4ed49bb2ee4.tar.bz2 mpv-4aab1d23e6c3822be365eb218818f4ed49bb2ee4.tar.xz |
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.
-rw-r--r-- | wscript_build.py | 5 |
1 files changed, 5 insertions, 0 deletions
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), |