summaryrefslogtreecommitdiffstats
path: root/TOOLS/osxbundle
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/osxbundle')
-rw-r--r--TOOLS/osxbundle/meson.build8
-rw-r--r--TOOLS/osxbundle/mpv.app/Contents/Info.plist13
-rwxr-xr-xTOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh3
-rw-r--r--TOOLS/osxbundle/mpv.app/Contents/Resources/mpv.conf2
4 files changed, 22 insertions, 4 deletions
diff --git a/TOOLS/osxbundle/meson.build b/TOOLS/osxbundle/meson.build
new file mode 100644
index 0000000000..a271b4120f
--- /dev/null
+++ b/TOOLS/osxbundle/meson.build
@@ -0,0 +1,8 @@
+input = join_paths(source_root, 'TOOLS', 'osxbundle',
+ 'mpv.app', 'Contents', 'Resources', 'icon.icns')
+osxbundle = custom_target('osxbundle',
+ input: input,
+ output: 'icon.icns.inc',
+ command: [file2string, '@INPUT@', '@OUTPUT@'],
+)
+sources += osxbundle
diff --git a/TOOLS/osxbundle/mpv.app/Contents/Info.plist b/TOOLS/osxbundle/mpv.app/Contents/Info.plist
index 11e34c4548..eaa83ad0d8 100644
--- a/TOOLS/osxbundle/mpv.app/Contents/Info.plist
+++ b/TOOLS/osxbundle/mpv.app/Contents/Info.plist
@@ -173,7 +173,7 @@
</dict>
</array>
<key>CFBundleExecutable</key>
- <string>mpv-wrapper.sh</string>
+ <string>mpv</string>
<key>CFBundleIconFile</key>
<string>icon</string>
<key>CFBundleIdentifier</key>
@@ -188,6 +188,15 @@
<string>${VERSION}</string>
<key>NSHighResolutionCapable</key>
<true/>
+ <key>LSApplicationCategoryType</key>
+ <string>public.app-category.games</string>
+ <key>LSEnvironment</key>
+ <dict>
+ <key>MallocNanoZone</key>
+ <string>0</string>
+ <key>MPVBUNDLE</key>
+ <string>true</string>
+ </dict>
<key>CFBundleURLTypes</key>
<array>
<dict>
@@ -217,6 +226,8 @@
<string>ftp</string>
<string>udp</string>
<string>smb</string>
+ <string>srt</string>
+ <string>rist</string>
</array>
</dict>
<dict>
diff --git a/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh b/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh
deleted file mode 100755
index f2658072ef..0000000000
--- a/TOOLS/osxbundle/mpv.app/Contents/MacOS/mpv-wrapper.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash -l
-export MPVBUNDLE="true"
-$SHELL -c "$(dirname "$0")/mpv --player-operation-mode=pseudo-gui"
diff --git a/TOOLS/osxbundle/mpv.app/Contents/Resources/mpv.conf b/TOOLS/osxbundle/mpv.app/Contents/Resources/mpv.conf
new file mode 100644
index 0000000000..618f87e24b
--- /dev/null
+++ b/TOOLS/osxbundle/mpv.app/Contents/Resources/mpv.conf
@@ -0,0 +1,2 @@
+player-operation-mode=pseudo-gui
+log-file=~/Library/Logs/mpv.log