diff --git a/.travis.yml b/.travis.yml index eae65b97..c69836a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + - npm run build -- --linux -p always \ No newline at end of file diff --git a/build/icon.png b/build/icon.png index 9ce8a7fa..f5cda2bf 100644 Binary files a/build/icon.png and b/build/icon.png differ diff --git a/package-lock.json b/package-lock.json index 8d7a6f62..bcf170b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "antares", - "version": "0.0.3-alpha", + "version": "0.0.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 42238f89..b36be9b1 100644 --- a/package.json +++ b/package.json @@ -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 ", "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",