summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py5
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),