Added electron-builder to project to build the app and installers

This commit is contained in:
Gregory Ballantine 2022-05-22 03:20:13 -04:00
parent 62702cf741
commit 5585a638eb
5 changed files with 4055 additions and 22 deletions

3
.gitignore vendored
View File

@ -7,3 +7,6 @@ public/
# SASS cache files
.sass-cache/
# Build artifacts
dist/

View File

@ -1,9 +1,9 @@
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json')
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {

BIN
build/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 KiB

4030
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +1,23 @@
{
"name": "electron-quick-start",
"version": "1.0.0",
"description": "A minimal Electron application",
"name": "archon",
"version": "0.1.0",
"description": "LDAP user and group manager",
"main": "main.js",
"scripts": {
"start": "electron ."
"start": "electron .",
"build": "electron-builder build --win --linux"
},
"repository": "https://github.com/electron/electron-quick-start",
"keywords": [
"Electron",
"quick",
"start",
"tutorial",
"demo"
"LDAP",
"user",
"group"
],
"author": "GitHub",
"license": "CC0-1.0",
"author": "Gregory Ballantine <gballantine@metaunix.net>",
"license": "BSD-2-Clause",
"devDependencies": {
"electron": "^18.2.4",
"electron-builder": "^23.0.3",
"grunt": "^1.5.3",
"grunt-contrib-coffee": "^2.1.0",
"grunt-contrib-copy": "^1.0.0",
@ -26,5 +26,23 @@
},
"dependencies": {
"ldapjs": "^2.3.2"
},
"build": {
"appId": "net.metaunix.archon",
"copyright": "Copyright © 2022 ${author}",
"win": {
"target": "msi",
"icon": "build/icon.png"
},
"linux": {
"target": ["deb", "rpm"],
"icon": "build/icon.png"
},
"deb": {
"category": "internet"
},
"rpm": {
"packageCategory": "internet"
}
}
}