Skip to content

Commit

Permalink
Build signed .crx
Browse files Browse the repository at this point in the history
  - move build from source info to CONTRIBUTING
  • Loading branch information
dckc committed Sep 21, 2018
1 parent c235ab2 commit 2ddc1d5
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 8 deletions.
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## Building from source: dev mode

1. `npm install` as usual to get runtime dependencies and dev tools
2. `npm start` to bundle / link each time sources change
3. Use [load unpacked][1] to load the results in the `dist/` directory.

[1]: https://developer.chrome.com/extensions/getstarted#unpacked

## Building from source: production

1. `npm install` as usual to get runtime dependencies and dev tools
2. Generate a signing key: `ln -s ~/.ssh; openssl genrsa 2048 | openssl pkcs8 -topk8 -nocrypt > .ssh/RSign-dckc.pem`
2. `npm run build` to link modules and generate a packed .crx file

## Code Style: Airbnb, mostly

Run `npm run lint`. See `eslintrc.yaml` for deviations from Airbnb
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,4 @@ signatures. For example, see
Only Chrome (and Chromium) are supported to date. Firefox support is
planned.

1. `npm install` to get runtime dependencies and dev tools
2. `npm run build` to link modules
3. Use [load unpacked][1].

[1]: https://developer.chrome.com/extensions/getstarted#unpacked
Download the latest `.crx` file from https://github.com/dckc/RSign/releases .
229 changes: 228 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rsign",
"version": "0.3.0",
"version": "0.4.0",
"description": "RChain Signature Extension",
"main": "sigTool.js",
"directories": {
Expand Down Expand Up @@ -30,6 +30,7 @@
},
"homepage": "https://github.com/dckc/RSign#readme",
"devDependencies": {
"crx-webpack-plugin": "^0.1.5",
"eslint": "^5.4.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
Expand Down
Loading

0 comments on commit 2ddc1d5

Please sign in to comment.