dev desktop tasks

This commit is contained in:
antelle 2020-05-15 21:38:33 +02:00
parent 177b150c95
commit c73f81a80a
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
3 changed files with 25 additions and 1 deletions

View File

@ -54,6 +54,14 @@ For debug build:
1. run `npm run dev`
2. open `http://localhost:8085`
To build desktop apps, use these goals:
```
npm run dev-desktop-macos
npm run dev-desktop-windows
npm run dev-desktop-linux
```
## Contributing
Please read contribution guidelines [for pull requests](.github/PULL_REQUEST_TEMPLATE.md).

View File

@ -57,6 +57,20 @@ module.exports = function(grunt) {
'build-desktop-executables-darwin'
]);
grunt.registerTask('dev-desktop-win32', 'Build a Windows app in dev environment', [
'default',
'build-desktop-app-content',
'electron:win32-x64',
'copy:desktop-windows-helper-x64'
]);
grunt.registerTask('dev-desktop-linux', 'Build a Linux app in dev environment', [
'default',
'build-desktop-app-content',
'electron:linux',
'chmod:linux-desktop-x64'
]);
grunt.registerTask('cordova', 'Build cordova app', [
'default',
'build-cordova'

View File

@ -105,7 +105,9 @@
"build-beta": "grunt --beta && cp dist/index.html ../keeweb-beta/index.html && cd ../keeweb-beta && git add index.html && git commit -a -m 'beta' && git push origin master",
"electron": "cross-env ELECTRON_DISABLE_SECURITY_WARNINGS=1 KEEWEB_HTML_PATH=http://localhost:8085 electron desktop",
"dev": "grunt dev",
"dev-desktop": "grunt dev-desktop-darwin --skip-sign",
"dev-desktop-macos": "grunt dev-desktop-darwin --skip-sign",
"dev-desktop-windows": "grunt dev-desktop-win32 --skip-sign",
"dev-desktop-linux": "grunt dev-desktop-linux --skip-sign",
"babel-helpers": "babel-external-helpers -l 'slicedToArray,toConsumableArray,defineProperty,typeof' -t global > app/lib/babel-helpers.js"
},
"author": {