Skip to content

Instantly share code, notes, and snippets.

@ralph
Created February 7, 2025 15:14
Show Gist options
  • Save ralph/42c417033693b8475b23ce89959f5b10 to your computer and use it in GitHub Desktop.
Save ralph/42c417033693b8475b23ce89959f5b10 to your computer and use it in GitHub Desktop.
#!/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": "[email protected]", "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 ../..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment