Nettoyage/amélioration scripts de build + bump version electron

This commit is contained in:
wpetit 2016-04-15 17:02:22 +02:00
parent 75391a7219
commit 5de75e42f8
3 changed files with 6 additions and 8 deletions

View File

@ -14,9 +14,7 @@ build:
curl --silent --location https://deb.nodesource.com/setup_0.12 | bash -
apt-get install --yes nodejs
npm install --ignore-scripts
npm run clean
npm run compile
npm run package -- --arch=$(ELECTRON_ARCH)
ARCH=$(ELECTRON_ARCH) npm run build
install:
mkdir -p $(INSTALL_LOCATION)

View File

@ -36,8 +36,8 @@ Vous pouvez configurer le comportement de Pitaya en passant des variables d'envi
## Comment construire l'application depuis les sources
```
npm run build
```bash
ARCH=<ARCH> npm run build # Où ARCH peut être "x64", "ia32" ou "all"
```
Un dossier `pitaya-<target>-<arch>` sera créé dans le répertoire `./build`. Celui ci contient tous les fichiers nécessaires à l'application.

View File

@ -5,7 +5,7 @@
"main": "main.js",
"devDependencies": {
"electron-packager": "^5.1.0",
"electron-prebuilt": "^0.33.6",
"electron-prebuilt": "^0.37.5",
"nodeunit": "^0.9.1",
"react-tools": "^0.13.3",
"node-jsx": "^0.13.3"
@ -15,8 +15,8 @@
"start": "./node_modules/.bin/electron .",
"compile": "./node_modules/.bin/jsx -x js --no-cache-dir src dist",
"clean": "rm -rf dist/* build/*",
"package": "./node_modules/.bin/electron-packager ./ pitaya --out=./build --app-version 0.0.0 --version=0.33.6 --prune --ignore='/res(/|$)' --ignore='/debian(/|$)' --ignore='/scripts(/|$)' --ignore='/build(/|$)' --ignore='/test(/|$)' --ignore='/electron-packager(/|$)' --ignore='/electron-tmp-.+(/|$)' --platform=linux --overwrite",
"build": "npm run clean && npm run compile && npm run package"
"package": "./node_modules/.bin/electron-packager ./ pitaya --out=./build --app-version 0.0.0 --version=0.37.5 --prune --ignore='/res(/|$)' --ignore='/debian(/|$)' --ignore='/scripts(/|$)' --ignore='/build(/|$)' --ignore='/test(/|$)' --ignore='/electron-packager(/|$)' --ignore='/electron-tmp-.+(/|$)' --platform=linux --overwrite",
"build": "npm run clean && npm run compile && npm run package -- --arch=$ARCH"
},
"dependencies": {
"bootstrap": "^3.3.5",