Made a build.sh script to generate the zipped extension file

This commit is contained in:
Fabio Manganiello 2022-12-04 15:45:39 +01:00
parent f065860edb
commit 1bed02b456
3 changed files with 11 additions and 6 deletions

View file

@ -11,8 +11,7 @@ browser and detect feed URLs in web pages.
```
git clone https://git.platypush.tech/blacklight/rss-viewer-browser-extension
cd rss-viewer-browser-extension
npm install
npm run build
./build.sh
```
A file named `dist.crx` will be generated - just drop it into your browser's extensions.

6
build.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
npm install
npm run build
zip -r dist dist
mv dist.zip dist.crx

8
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "sample-project",
"version": "1.0.0",
"name": "rss-viewer-browser-ext",
"version": "0.1.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sample-project",
"version": "1.0.0",
"name": "rss-viewer-browser-ext",
"version": "0.1.0",
"dependencies": {
"dotenv": "^16.0.0",
"node-sass": "^8.0.0",