added a possibility to build a signed desktop app with `npm dev-desktop-macos-signed`

pull/1705/head
antelle 2021-01-10 11:55:00 +01:00
parent b05c25ac1a
commit d318467039
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 7 additions and 2 deletions

View File

@ -51,13 +51,17 @@ module.exports = function(grunt) {
'default',
'build-desktop-app-content',
'electron:darwin-x64',
'osacompile:installer',
'copy:darwin-installer-icon',
'build-darwin-installer',
'copy:desktop-darwin-helper-x64',
'copy:desktop-darwin-installer-helper-x64',
'copy:native-modules-darwin-x64'
]);
grunt.registerTask('dev-desktop-darwin-signed', 'Build a signed macOS app in dev environment', [
'dev-desktop-darwin',
'osx-sign:desktop-x64'
]);
grunt.registerTask('dev-desktop-win32', 'Build a Windows app in dev environment', [
'default',
'build-desktop-app-content',

View File

@ -112,6 +112,7 @@
"electron": "cross-env KEEWEB_IS_PORTABLE=0 ELECTRON_DISABLE_SECURITY_WARNINGS=1 KEEWEB_HTML_PATH=http://localhost:8085 electron desktop --no-sandbox",
"dev": "grunt dev",
"dev-desktop-macos": "grunt dev-desktop-darwin --skip-sign",
"dev-desktop-macos-signed": "grunt dev-desktop-darwin-signed",
"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"