You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information on web-ext, [read this documentation](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/).
65
77
To pass additional arguments to an `npm run` command, use `--`.
66
-
Example: `npm run chrome -- --chromium-binary=...`
78
+
Example: `npm run chrome -- --chromium-binary=...`
67
79
68
80
## Building
69
81
@@ -73,25 +85,17 @@ See [gulpfile.js](gulpfile.js) for more information on `postinstall`.
73
85
npm install
74
86
```
75
87
76
-
To load unpacked or temporary addon from the [src](src) folder, you must generate the `src/manifest.json` for the desired browser.
77
-
```shell
78
-
npm run manifest:chrome
79
-
npm run manifest:firefox
80
-
```
81
-
82
-
If you would like to create a `.zip` archive of the [src](src) directory for the desired browser.
88
+
To create a `.zip` archive of the [src](src) directory for the desired browser run one of the following:
83
89
```shell
84
90
npm run build
85
91
npm run build:chrome
86
92
npm run build:firefox
87
93
```
88
94
89
-
For more information on building, see the scripts in the [package.json](package.json) file.
95
+
For more information on building, see the scripts section in the [package.json](package.json) file.
90
96
91
97
## Chrome Setup
92
98
93
-
To install for production: https://chromewebstore.google.com/detail/smwc-web-extension/foalfafgmnglcgpgkhhmcfhjgmdcjide
94
-
95
99
1. Build or Download a [Release](https://github.com/cssnr/smwc-web-extension/releases).
96
100
1. Unzip the archive, place the folder where it must remain and note its location for later.
97
101
1. Open Chrome, click the `3 dots` in the top right, click `Extensions`, click `Manage Extensions`.
@@ -100,19 +104,14 @@ To install for production: https://chromewebstore.google.com/detail/smwc-web-ext
100
104
101
105
## Firefox Setup
102
106
103
-
To install for production: https://addons.mozilla.org/addon/smwc-web-extension
104
-
105
-
Note: Firefox Temporary addon's will **not** remain after restarting Firefox, therefore;
106
-
it is very useful to keep addon storage after uninstall/restart with `keepStorageOnUninstall`.
107
-
108
107
1. Build or Download a [Release](https://github.com/cssnr/smwc-web-extension/releases).
109
108
1. Unzip the archive, place the folder where it must remain and note its location for later.
110
109
1. Go to `about:debugging#/runtime/this-firefox` and click `Load Temporary Add-on...`
111
110
1. Navigate to the folder you extracted earlier, select `manifest.json` then click `Select File`.
112
111
1. Open `about:config` search for `extensions.webextensions.keepStorageOnUninstall` and set to `true`.
113
112
114
-
If you need to test a build or browser restart, you must pack the addon.
115
-
This only works in ESR, Development, or Nightly.
113
+
If you need to test a restart, you must pack the addon. This only works in ESR, Development, or Nightly.
114
+
You may also use an Unbranded Build: [https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds](https://wiki.mozilla.org/Add-ons/Extension_Signing#Unbranded_Builds)
116
115
117
116
1. Run `npm run build:firefox` then use `web-ext-artifacts/{name}-firefox-{version}.zip`.
118
117
1. Open `about:config` search for `xpinstall.signatures.required` and set to `false`.
0 commit comments