Skip to content

Migrate to menuinst v2 #306

Closed
Closed

Description

@gdementen

When testing pixi, I realized our menu definitions (larray-editor\condarecipe\larray-editor\larray-editor.json) are still using v1 syntax while a v2 has existed for a while. This is required for pixi support.

Here is what I used for v2 so far:

{
    "$schema": "https://json-schema.org/draft-07/schema",
    "$id": "https://schemas.conda.io/menuinst-1-1-3.schema.json",
    "menu_name": "LArray",
    "menu_items": [
        {
            "name": {
                "target_environment_is_base": "LArray Editor",
                "target_environment_is_not_base": "LArray Editor ({{ ENV_NAME }})"
            },
            "description": "LArray Editor",
            "activate": false,
            "terminal": false,
            "command": ["{{ SCRIPTS_DIR }}\\larray-editor.exe", "%*"],
            "icon": "{{ MENU_DIR }}\\larray.ico",
            "platforms": {
                "win": {
                    "file_extensions": [
                        ".h5"
                    ]
                }
            }
        },
        {
            "name": "LArray Documentation",
            "description": "LArray Documentation",
            "command": ["{{ BASE_PYTHONW }}", "-m", "webbrowser", "http://larray.readthedocs.io/en/0.35"],
            "icon": "{{ MENU_DIR }}/larray-help.ico",
            "platforms": {
              "win": {}
            }
        },
    ]
}

Activity

  1. added this to the 0.36 milestone on Feb 2, 2026
  2. modified the milestones: 0.36, 0.35.1 on Mar 20, 2026
  3. self-assigned this
    on Mar 20, 2026
  4. gdementen commented on Mar 23, 2026

    @gdementen
    CollaboratorAuthor

    For future reference, here is how to test this:

    • copy larray-editor.json, larray.ico and larray-help.ico in <target environment path>\Menu
    • open command prompt
    • activate an environment with menuinst installed
    • execute :
      menuinst --prefix <target environment path> --install
  5. added 2 commits that reference this issue on Mar 23, 2026
    32df96f
    ec8e55c
  6. added a commit that references this issue on Mar 26, 2026
    e8d6d68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions