Skip to content

Commit

Permalink
feat(build): Build for linux distros
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmeku committed Aug 10, 2018
1 parent 99487c5 commit 3c3abea
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "AngularConsole",
"description": "Angular Console",
"version": "6.0.0-beta.1",
"author": "Nrwl",
"author": {
"name": "Narwhal Technologies Inc",
"email": "[email protected]"
},
"main": "electron.js",
"license": "MIT",
"dependencies": {
Expand Down
9 changes: 6 additions & 3 deletions package-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ module.exports = {
},
electron: {
'clean': 'rm -rf dist',
'clean-packages': 'rm -rf dist/packages',
'compile': 'tsc -p electron/tsconfig.json',
'copy-assets': 'cp electron/package.json dist/electron/package.json && cp -r electron/assets dist/electron',
'copy-server': 'cp -r dist/server/src dist/electron/server',
Expand All @@ -51,9 +52,11 @@ module.exports = {
'prepackage': npsUtils.series.nps('electron.clean', 'electron.compile', 'electron.copy-assets', 'frontend.build', 'server.compile', 'electron.copy-server', 'electron.copy-frontend', 'electron.install-node-modules'),
'up': npsUtils.series.nps('electron.prepackage', 'electron.start'),

'builder-dist': 'electron-builder --mac -p never',
'copy-to-osbuilds': 'cp -r dist/packages osbuilds/mac',
'dist': npsUtils.series.nps('electron.prepackage', 'electron.builder-dist', 'electron.copy-to-osbuilds')
'builder-dist-mac': 'electron-builder --mac -p never',
'builder-dist-linux': 'electron-builder --linux -p never',
'copy-to-osbuilds-mac': 'cp -r dist/packages osbuilds/mac',
'copy-to-osbuilds-linux': 'cp -r dist/packages osbuilds/linux',
'dist': npsUtils.series.nps('electron.prepackage', 'electron.builder-dist-mac', 'electron.copy-to-osbuilds-mac', 'clean-packages', 'electron.builder-dist-linux', 'electron.copy-to-osbuilds-linux')
},
electronwin: {
'clean': 'if exist dist rmdir dist /s /q',
Expand Down
15 changes: 14 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"name": "angular-console",
"version": "6.0.0-beta.1",
"private": true,
"author": "Narwhal Technologies Inc",
"author": {
"name": "Narwhal Technologies Inc",
"email": "[email protected]"
},
"license": "MIT",
"scripts": {
"start": "nps",
Expand All @@ -28,6 +31,16 @@
"target": "nsis",
"icon": "icon.ico"
},
"linux": {
"target": [
"snap",
"deb",
"AppImage",
"tar.xz"
],
"synopsis": "Angular Console",
"category": "Development"
},
"nsis": {
"createDesktopShortcut": "always",
"installerIcon": "icon.ico"
Expand Down

0 comments on commit 3c3abea

Please sign in to comment.