package: rename npm build command to package, add logo to electron-window
This commit is contained in:
parent
22b6f71c00
commit
529800127a
4 changed files with 8 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ deploy:
|
|||
tags: true
|
||||
before_deploy:
|
||||
- export VERSION=$(sed -nE 's/^\s*"version":\ "(.*?)",$/\1/p' package.json)
|
||||
- npm run build
|
||||
- npm run package
|
||||
- npm run deb32
|
||||
- npm run deb64
|
||||
- npm run debarm
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ module.exports = function(options={}) {
|
|||
width: options.width || 800,
|
||||
height: options.height || 600,
|
||||
title: options.title || settings.read('appName'),
|
||||
icon: path.resolve(__dirname + '/logo.png'),
|
||||
backgroundColor: options.color || bgColor,
|
||||
type:options.type
|
||||
})
|
||||
|
|
|
|||
|
|
@ -51,9 +51,10 @@
|
|||
"electron-installer-debian": "0.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "cp resources/images/logo-nobadge.png app/browser/favicon.png && cd app && npm install && cd .. && npm run build-js && npm run build-css",
|
||||
"postinstall": "cp resources/images/logo-nobadge.png app/browser/favicon.png && cp resources/images/logo.png app/main/logo.png && cd app && npm install",
|
||||
"start": "cd app && npm start --",
|
||||
"build": "npm run build-js -- --prod && npm run build-css && electron-packager ./app open-stage-control --platform=$PLATFORM --arch=$ARCH --out dist/ --icon=resources/images/logo --overwrite --ignore \"(node_modules/serialport)\" --ignore \"(node_modules/uws)\"",
|
||||
"build": "npm run build-css && npm run build-js && echo 'JS and CSS assets built. To build the binary package, run \"npm run package\".'",
|
||||
"package": "npm run build-js -- --prod && npm run build-css && electron-packager ./app open-stage-control --platform=$PLATFORM --arch=$ARCH --out dist/ --icon=resources/images/logo --overwrite --ignore \"(node_modules/serialport)\" --ignore \"(node_modules/uws)\"",
|
||||
"deb32": "electron-installer-debian --src dist/open-stage-control-linux-ia32/ --arch i386 --dest dist/open-stage-control-linux-ia32/ --icon resources/images/logo.png",
|
||||
"deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png",
|
||||
"debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png",
|
||||
|
|
@ -63,7 +64,7 @@
|
|||
"build-css": "node-sass --include-path src/browser/scss src/browser/scss/style.scss app/browser/styles.css --output-style compressed",
|
||||
"build-js": "node scripts/build-js.js > app/browser/scripts.js",
|
||||
"deploy-docs": "cd resources && mkdocs gh-deploy --clean && rm -rf site",
|
||||
"test": "npm run build-js && npm run build-css"
|
||||
"test": "npm run build"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6"
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ $ sudo npm install -g npm # update npm
|
|||
$ git clone https://github.com/jean-emmanuel/open-stage-control
|
||||
$ cd open-stage-control/
|
||||
$ npm install
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
**3. Run !**
|
||||
|
|
@ -106,7 +107,7 @@ $ cd open-stage-control
|
|||
$ npm install
|
||||
$ export PLATFORM=TARGET_PLATFORM # TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x)
|
||||
$ export ARCH=TARGET_ARCH # TARGET_ARCH can be ia32, x64 or armv7l
|
||||
$ npm run build
|
||||
$ npm run package
|
||||
|
||||
# Do the following if you want a deb package for debian/ubuntu
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue