Skip to content

Instantly share code, notes, and snippets.

@ralph
Created February 7, 2025 15:14
Show Gist options
  • Select an option

  • Save ralph/42c417033693b8475b23ce89959f5b10 to your computer and use it in GitHub Desktop.

Select an option

Save ralph/42c417033693b8475b23ce89959f5b10 to your computer and use it in GitHub Desktop.

Revisions

  1. ralph created this gist Feb 7, 2025.
    14 changes: 14 additions & 0 deletions package-firefox.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/sh

    # Build vue devtools for Firefox.
    # Check out the repository and run this script, then install the XPI file.
    # https://github.com/vuejs/devtools
    # You may also have to set `xpinstall.signatures.required` to `false` in `about:config`.

    cd packages/firefox-extension
    git checkout manifest.json
    cat manifest.json | jq --argjson browser_specific_settings '{"gecko": {"id": "vue@example.com", "strict_min_version": "58.0"}}' '. + {browser_specific_settings: $browser_specific_settings}' > tmp.json
    mv tmp.json manifest.json
    zip -1 -r ../../vue-devtools.xpi * --exclude 'node_modules/*'
    git checkout manifest.json
    cd ../..