Skip to content

Commit

Permalink
Merge pull request #190 from mrclary/installer
Browse files Browse the repository at this point in the history
Update application system identifiers
  • Loading branch information
ccordoba12 authored Oct 2, 2024
2 parents 9ae2d28 + c7c5f77 commit 43d4fb2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- osx-zmq.patch

build:
number: 1
number: 2
skip: true # [osx and arm64 and py < 39]
entry_points:
- spyder = spyder.app.start:main
Expand Down
4 changes: 4 additions & 0 deletions recipe/post-link.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ menu="${PREFIX}/Menu/spyder-menu.json"
if [[ -f "${PREFIX}/Menu/conda-based-app" ]]; then
# Installed in installer environment, abridge shortcut name
sed "${opts[@]}" "s/ \(\{\{ ENV_NAME \}\}\)//g" $menu
sed "${opts[@]}" "s/-__CFBID_ENV__//g" $menu

# Nothing more to do for conda-based-installers
exit
fi

env_name=$(basename ${PREFIX//_/-})
sed "${opts[@]}" "s/__CFBID_ENV__/${env_name}/g" $menu

# Do not create shortcut for menuinst version <2.1.2
menuinst_version=$($CONDA_PYTHON_EXE -c "import menuinst; print(menuinst.__version__)" 2>/dev/null || echo "0.0.0")
if [[ "$menuinst_version" < "2.1.2" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions recipe/spyder-menu.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"platforms": {
"win": {
"desktop": true,
"app_user_model_id": "spyder.Spyder",
"app_user_model_id": "spyder-ide.Spyder-__PKG_MAJOR_VER__.{{ ENV_NAME }}",
"command": ["{{ PREFIX }}/Scripts/spyder.exe", "%*"],
"file_extensions": [
".enaml",
Expand All @@ -33,7 +33,7 @@
"Science"
],
"command": ["{{ PREFIX }}/bin/spyder", "%F"],
"StartupWMClass": "Spyder",
"StartupWMClass": "Spyder-__PKG_MAJOR_VER__.{{ ENV_NAME }}",
"MimeType": [
"text/x-python"
]
Expand All @@ -45,7 +45,7 @@
"{{ PREFIX }}/bin/python": "{{ MENU_ITEM_LOCATION }}/Contents/MacOS/python"
},
"CFBundleName": "Spyder __PKG_MAJOR_VER__",
"CFBundleIdentifier": "org.spyder-ide.Spyder",
"CFBundleIdentifier": "org.spyder-ide.Spyder-__PKG_MAJOR_VER__-__CFBID_ENV__",
"CFBundleVersion": "__PKG_VERSION__",
"CFBundleDocumentTypes": [
{
Expand Down

0 comments on commit 43d4fb2

Please sign in to comment.