1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00
mpv/TOOLS/osxbundle/mpv.app/Contents
Daniel Brookman aa8af2e66b osxbundle: remove mpv-bundle symlink to allow code signing
Apps on Apple silicon have to be codesigned to run, but you can't
codesign bundles that have a symlink for the main executable.

The "mpv-bundle" symlink was used as the bundle's main executable
because it makes the execution name of the binary different.
Launch Services runs the CFBundleExecutable key from Info.plist when
launching a bundle, so by comparing the execution name to the name of
the symlink, you can check if that's how the binary was launched.

This replaces that detection method by moving the MPVBUNDLE
environmental variable into Info.plist. Launch Services will set
anything in LSEnvironment as environmental variables before launching
the bundle, so we're able to check for it instead of needing to
differentiate the execution name of the binary.

Fixes 
2023-11-15 23:08:11 +01:00
..
MacOS osx: fix bundle on macOS High Sierra (10.13) 2017-10-03 11:30:56 +02:00
Resources mac: activate logging when started from the bundle 2020-02-08 10:55:07 +01:00
Info.plist osxbundle: remove mpv-bundle symlink to allow code signing 2023-11-15 23:08:11 +01:00
PkgInfo