This is a browser extension project for Deneb. It must work with Deneb 3.0.0 and above together to get work.
Currently support Chrome, Firefox and Edge.
This project add some magic bridge between Deneb and bgm.tv, which allow Deneb project add a lot of social features by using a bgm.tv account.
Require Nodejs >= v8.5
-
Clone this project
-
yarn install
-
rename
env.example.js
toenv.js
, change some values in the object of this file, with your domain and site name. -
development
-
For Chrome development use
npm start
to build an unpacked extension and in Chrome extension page (chrome://extensions) toggle Developer mode on. then you will see a new toolbar appeared. click Load unpacked, choose thedist
folder. you will load this extension successfully. -
For firefox development use
npm run start:firefox
to build an unpacked extension. in Firefox debugging page (about:debugging), check the Enable add-on debugging, then click Load Temporary Add-on. Choosedist/manifest.json
file. add-on will be load.
- publish your own extension to Chrome Webstore and Firefox AMO
run build.sh
will build all extensions to zip files. upload your extension to each browser's distribution platform.
Note for Firefox extension: Due to Albireo service is private and AMO policy, you need self-distribute your extension. the building script
will help you generate an proper update manifest. you need create the following files in order to work with build.sh
script
-
copy and modify
sign-env.example.sh
, rename it to sign-env.sh. the environment variable will be used byweb-ext
to sign the extension you need visit your Developer Hub at AMO to acquireapi key
andapi secret
-
setup your static file server, and make sure your can access static file via the
firefox_update_link
in the env.js prod section. -
After run build.sh, upload your update.json and newest built firefox extension zip file resided in the web-ext-artifacts directory.