mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
8b6e05adff
commit
4aab1d23e6
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue