Skip to content
Snippets Groups Projects
Commit b103834b authored by Saúl Ibarra Corretgé's avatar Saúl Ibarra Corretgé Committed by hristoterezov
Browse files

Simplify rebuilding Node modules for Electron

parent 26a6d2bb
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ from config.js ...@@ -8,7 +8,7 @@ from config.js
## Building the sources ## Building the sources
```bash ```bash
npm run build npm install
``` ```
## Statring the application ## Statring the application
......
# Electron's version.
export npm_config_target=1.4.13
# The architecture of Electron, can be ia32 or x64.
export npm_config_arch=x64
export npm_config_target_arch=x64
# Download headers for Electron.
export npm_config_disturl=https://atom.io/download/electron
# Tell node-pre-gyp that we are building for Electron.
export npm_config_runtime=electron
# Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true
HOME=./.electron-gyp npm install
...@@ -6,11 +6,11 @@ ...@@ -6,11 +6,11 @@
"productName": "Jitsi Meet", "productName": "Jitsi Meet",
"scripts": { "scripts": {
"start": "electron .", "start": "electron .",
"build": "./electron_npm_rebuild", "clean": "rm -rf node_modules",
"clean": "rm -r node_modules .electron-gyp",
"lint": "eslint .", "lint": "eslint .",
"validate": "npm ls", "pack": "electron-packager .",
"pack": "electron-packager ." "postinstall": "electron-rebuild",
"validate": "npm ls"
}, },
"pre-commit": [ "pre-commit": [
"lint" "lint"
...@@ -35,9 +35,10 @@ ...@@ -35,9 +35,10 @@
}, },
"devDependencies": { "devDependencies": {
"electron": "1.4.13", "electron": "1.4.13",
"electron-packager": "*",
"electron-rebuild": "^1.5.6",
"eslint": ">=3", "eslint": ">=3",
"eslint-plugin-jsdoc": "*", "eslint-plugin-jsdoc": "*",
"precommit-hook": "3.0.0", "precommit-hook": "3.0.0"
"electron-packager": "*"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment