build: fix to build configuration on Travis

This commit is contained in:
Fabio 2020-08-05 22:09:23 +02:00
parent 5c05e3e9e9
commit b03d461e21
4 changed files with 42 additions and 9 deletions

View File

@ -29,7 +29,7 @@ jobs:
os: osx
osx_image: xcode10.1
script:
- npm run publish -- --mac --win
- npm run build -- --mac --win -p always
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine
- stage: Deploy linux
@ -37,4 +37,4 @@ jobs:
os: linux
dist: trusty
script:
- npm run publish
- npm run build -- --linux -p always

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 25 KiB

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "antares",
"version": "0.0.3-alpha",
"version": "0.0.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -1,24 +1,56 @@
{
"name": "antares",
"productName": "Antares",
"version": "0.0.3-alpha",
"version": "0.0.4",
"description": "A cross-platform easy to use SQL client.",
"main": "src/main/index.js",
"license": "MIT",
"repository": "https://github.com/EStarium/antares.git",
"scripts": {
"dev": "cross-env NODE_ENV=development electron-webpack dev",
"compile": "electron-webpack",
"dist": "cross-env NODE_ENV=production npm run compile && electron-builder",
"dist:dir": "cross-env NODE_ENV=production npm run dist --dir -c.compression=store -c.mac.identity=null",
"publish": "electron-builder -p always"
"build": "cross-env NODE_ENV=production npm run compile && electron-builder",
"release": "standard-version",
"release:pre": "npm run release -- --prerelease alpha"
},
"author": "Fabio Di Stasio <fabio286@gmail.com>",
"build": {
"npmRebuild": false,
"asar": true,
"appId": "com.estarium.antares",
"artifactName": "${productName}-${version}-${os}_${arch}.${ext}",
"files": [
"static/*"
]
"dist/**/*",
"src/**/*",
"node_modules/**/*",
"package.json"
],
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"target": [
"nsis"
]
},
"linux": {
"target": [
"deb",
"AppImage"
],
"category": "Development"
}
},
"electronWebpack": {
"whiteListedModules": [
@ -64,6 +96,7 @@
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.14.1",
"sass-loader": "^9.0.2",
"standard-version": "^8.0.2",
"stylelint": "^13.6.1",
"stylelint-config-standard": "^20.0.0",
"stylelint-scss": "^3.18.0",