mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 22:24:50 +02:00
Simplify rebuilding Node modules for Electron
This commit is contained in:
parent
26a6d2bbae
commit
b103834bb2
|
@ -8,7 +8,7 @@ from config.js
|
|||
|
||||
## Building the sources
|
||||
```bash
|
||||
npm run build
|
||||
npm install
|
||||
```
|
||||
|
||||
## Statring the application
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
# 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
|
13
package.json
13
package.json
|
@ -6,11 +6,11 @@
|
|||
"productName": "Jitsi Meet",
|
||||
"scripts": {
|
||||
"start": "electron .",
|
||||
"build": "./electron_npm_rebuild",
|
||||
"clean": "rm -r node_modules .electron-gyp",
|
||||
"clean": "rm -rf node_modules",
|
||||
"lint": "eslint .",
|
||||
"validate": "npm ls",
|
||||
"pack": "electron-packager ."
|
||||
"pack": "electron-packager .",
|
||||
"postinstall": "electron-rebuild",
|
||||
"validate": "npm ls"
|
||||
},
|
||||
"pre-commit": [
|
||||
"lint"
|
||||
|
@ -35,9 +35,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"electron": "1.4.13",
|
||||
"electron-packager": "*",
|
||||
"electron-rebuild": "^1.5.6",
|
||||
"eslint": ">=3",
|
||||
"eslint-plugin-jsdoc": "*",
|
||||
"precommit-hook": "3.0.0",
|
||||
"electron-packager": "*"
|
||||
"precommit-hook": "3.0.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue