From 4a832dcb332579b438c8aa0395217d6b60e2f9d4 Mon Sep 17 00:00:00 2001 From: Ryan Clary <9618975+mrclary@users.noreply.github.com> Date: Thu, 25 Jan 2024 11:40:13 -0800 Subject: [PATCH] Add file type association for macOS. Note: this results in a non-functioning application bundle, with nested application and broken executable stubs (https://github.com/conda/menuinst/issues/179) --- recipe/spyder-menu.json | 109 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 108 insertions(+), 1 deletion(-) diff --git a/recipe/spyder-menu.json b/recipe/spyder-menu.json index 20cf852..1a4fcb2 100644 --- a/recipe/spyder-menu.json +++ b/recipe/spyder-menu.json @@ -32,7 +32,114 @@ }, "CFBundleName": "Spyder __PKG_MAJOR_VER__", "CFBundleIdentifier": "org.spyder-ide.Spyder", - "CFBundleVersion": "__PKG_VERSION__" + "CFBundleVersion": "__PKG_VERSION__", + "CFBundleDocumentTypes": [ + { + "CFBundleTypeName": "text document", + "CFBundleTypeRole": "Editor", + "LSHandlerRank": "Default", + "CFBundleTypeIconFile": "spyder.icns", + "LSItemContentTypes": [ + "com.apple.applescript.text", + "com.apple.ascii-property-list", + "com.apple.audio-unit-preset", + "com.apple.binary-property-list", + "com.apple.configprofile", + "com.apple.crashreport", + "com.apple.dashcode.css", + "com.apple.dashcode.javascript", + "com.apple.dashcode.json", + "com.apple.dashcode.manifest", + "com.apple.dt.document.ascii-property-list", + "com.apple.dt.document.script-suite-property-list", + "com.apple.dt.document.script-terminology-property-list", + "com.apple.property-list", + "com.apple.rez-source", + "com.apple.scripting-definition", + "com.apple.structured-text", + "com.apple.traditional-mac-plain-text", + "com.apple.xcode.ada-source", + "com.apple.xcode.apinotes", + "com.apple.xcode.bash-script", + "com.apple.xcode.configsettings", + "com.apple.xcode.csh-script", + "com.apple.xcode.entitlements-property-list", + "com.apple.xcode.fortran-source", + "com.apple.xcode.glsl-source", + "com.apple.xcode.ksh-script", + "com.apple.xcode.lex-source", + "com.apple.xcode.make-script", + "com.apple.xcode.mig-source", + "com.apple.xcode.pascal-source", + "com.apple.xcode.strings-text", + "com.apple.xcode.tcsh-script", + "com.apple.xcode.yacc-source", + "com.apple.xcode.zsh-script", + "com.apple.xml-property-list", + "com.netscape.javascript-source", + "com.scenarist.closed-caption", + "com.sun.java-source", + "com.sun.java-web-start", + "net.daringfireball.markdown", + "org.khronos.glsl-source", + "org.oasis-open.xliff", + "public.ada-source", + "public.assembly-source", + "public.bash-script", + "public.c-header", + "public.c-plus-plus-header", + "public.c-plus-plus-source", + "public.c-source", + "public.case-insensitive-text", + "public.comma-separated-values-text", + "public.csh-script", + "public.css", + "public.delimited-values-text", + "public.dylan-source", + "public.filename-extension", + "public.fortran-77-source", + "public.fortran-90-source", + "public.fortran-95-source", + "public.fortran-source", + "public.html", + "public.json", + "public.ksh-script", + "public.lex-source", + "public.log", + "public.m3u-playlist", + "public.make-source", + "public.mig-source", + "public.mime-type", + "public.module-map", + "public.nasm-assembly-source", + "public.objective-c-plus-plus-source", + "public.objective-c-source", + "public.opencl-source", + "public.pascal-source", + "public.patch-file", + "public.perl-script", + "public.php-script", + "public.plain-text", + "public.python-script", + "public.rss", + "public.ruby-script", + "public.script", + "public.shell-script", + "public.source-code", + "public.tcsh-script", + "public.text", + "public.utf16-external-plain-text", + "public.utf16-plain-text", + "public.utf8-plain-text", + "public.utf8-tab-separated-values-text", + "public.xhtml", + "public.xml", + "public.yacc-source", + "public.yaml", + "public.zsh-script" + ] + } + ] } } }