浏览代码

cmake: Fix M1-based OBS.app appearing as being an "iOS" app

MacOS' system information checks the CFBundleSupportedPlatforms value
in the app's property list file for the type. This was correctly set
for plugin bundles, but not binary bundles so far.
PatTheMav 3 年之前
父节点
当前提交
3c3fdc7a70
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      cmake/bundle/macOS/Info.plist.in

+ 4 - 0
cmake/bundle/macOS/Info.plist.in

@@ -18,6 +18,10 @@
 	<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
 	<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
 	<key>CFBundleVersion</key>
 	<key>CFBundleVersion</key>
 	<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
 	<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+	<key>CFBundleSupportedPlatforms</key>
+  	<array>
+  		<string>MacOSX</string>
+  	</array>
 	<key>NSHighResolutionCapable</key>
 	<key>NSHighResolutionCapable</key>
 	<true/>
 	<true/>
 	<key>LSMinimumSystemVersion</key>
 	<key>LSMinimumSystemVersion</key>