summaryrefslogtreecommitdiff
path: root/labui.spec
diff options
context:
space:
mode:
Diffstat (limited to 'labui.spec')
-rw-r--r--labui.spec21
1 files changed, 21 insertions, 0 deletions
diff --git a/labui.spec b/labui.spec
index 71d50dd..0fdbedc 100644
--- a/labui.spec
+++ b/labui.spec
@@ -81,3 +81,24 @@ coll = COLLECT(
upx_exclude=[],
name="LabUI",
)
+
+# macOS: wrap the onedir output in a real .app bundle. Required for both a
+# double-clickable Finder app AND file association — CFBundleDocumentTypes
+# here is what tells Finder/LaunchServices that LabUI opens .labui files
+# (core/file_association.py doesn't need to do anything at runtime on this
+# platform, unlike Windows/Linux, because of this).
+if sys.platform == "darwin":
+ app = BUNDLE(
+ coll,
+ name="LabUI.app",
+ bundle_identifier="org.labui.LabUI", # placeholder — swap for a real reverse-DNS id
+ info_plist={
+ "CFBundleDocumentTypes": [{
+ "CFBundleTypeName": "LabUI Profile",
+ "CFBundleTypeExtensions": ["labui"],
+ "CFBundleTypeRole": "Editor",
+ "LSHandlerRank": "Owner",
+ }],
+ "NSHighResolutionCapable": True,
+ },
+ )