mirror of
https://github.com/avinal/sciezka.git
synced 2026-07-03 23:30:09 +05:30
docs: add packaging instructions for Firefox
Assisted-by: Claude Code Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -51,10 +51,24 @@ Press **Ctrl+Space** to open the search overlay on any page.
|
|||||||
## Building
|
## Building
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
npm install
|
||||||
npm run build # one-time build
|
npm run build # one-time build
|
||||||
npm run watch # rebuild on file changes
|
npm run watch # rebuild on file changes
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Packaging for Firefox
|
||||||
|
|
||||||
|
To create a `.zip` (which Firefox also accepts as `.xpi`) for sideloading:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
npx web-ext build --source-dir . --artifacts-dir ./artifacts --overwrite-dest \
|
||||||
|
--ignore-files "src/" "tsconfig.json" "build.mjs" "package.json" \
|
||||||
|
"package-lock.json" "node_modules/" "artifacts/" ".github/"
|
||||||
|
```
|
||||||
|
|
||||||
|
This produces `artifacts/sciezka-<version>.zip`. To install it in Firefox, go to `about:addons` > gear icon > Install Add-on From File.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT
|
MIT
|
||||||
|
|||||||
Reference in New Issue
Block a user