From a696ad0328ab93b3e83c30a21941256940c01740 Mon Sep 17 00:00:00 2001 From: ReimarBauer Date: Thu, 18 Apr 2024 11:05:49 +0200 Subject: [PATCH] improved for OSX and Windows --- localbuild/menu.json | 55 +++++++++++++++++++++++++++++++++----------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/localbuild/menu.json b/localbuild/menu.json index 989bfced9..9fdbd46c6 100644 --- a/localbuild/menu.json +++ b/localbuild/menu.json @@ -5,21 +5,50 @@ "menu_items": [ { "name": "MSUI", - "description": "Mission Support System UI", + "description": "Mission Support System MSUI", "activate": true, "icon": "{{ MENU_DIR }}/msui.{{ ICON_EXT }}", - "command": ["{{ PREFIX }}/bin/msui.py"], + "command": [ + "{{ PYTHON }}", + "{{ PREFIX }}/bin/msui" + ], "platforms": { - "linux": { - "Categories": ["Internet", "Science"], - "Keywords": ["documentation", "information"], - "StartupNotify": true, - "MimeType": ["application/x-menuinst"], - "glob_patterns": { - "application/x-menuinst": "*.menuinst" - } + "win": { + "command": [ + "{{ PYTHON }}", + "{{ SCRIPTS_DIR }}/msui" + ], + "file_extensions": [".menuinst"] + }, + "linux": { + "Categories": ["Internet", "Science"], + "Keywords": ["documentation", "information"], + "StartupNotify": true, + "MimeType": ["application/x-menuinst"], + "glob_patterns": { + "application/x-menuinst": "*.menuinst" + } + }, + "osx": { + "CFBundleDocumentTypes": [ + { + "CFBundleTypeName": "org.conda.menuinst.msui", + "CFBundleTypeRole": "Viewer", + "LSItemContentTypes": ["org.conda.menuinst.main-file-uti"], + "LSHandlerRank": "Default" + } + ], + "UTExportedTypeDeclarations": [ + { + "UTTypeConformsTo": ["public.data", "public.content"], + "UTTypeIdentifier": "org.conda.menuinst.main-file-uti", + "UTTypeTagSpecification": { + "public.filename-extension": ["menuinst"] + } + } + ] + } + } } - } - } - ] + ] }