瀏覽代碼

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>
 	<key>CFBundleVersion</key>
 	<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+	<key>CFBundleSupportedPlatforms</key>
+  	<array>
+  		<string>MacOSX</string>
+  	</array>
 	<key>NSHighResolutionCapable</key>
 	<true/>
 	<key>LSMinimumSystemVersion</key>