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 files
.sass-cache/ .sass-cache/
# Build artifacts
dist/

View File

@ -1,9 +1,9 @@
module.exports = function(grunt) { module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json')
// Project configuration. // Project configuration.
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: { sass: {
dist: { dist: {
options: { 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", "name": "archon",
"version": "1.0.0", "version": "0.1.0",
"description": "A minimal Electron application", "description": "LDAP user and group manager",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"start": "electron ." "start": "electron .",
"build": "electron-builder build --win --linux"
}, },
"repository": "https://github.com/electron/electron-quick-start", "repository": "https://github.com/electron/electron-quick-start",
"keywords": [ "keywords": [
"Electron", "LDAP",
"quick", "user",
"start", "group"
"tutorial",
"demo"
], ],
"author": "GitHub", "author": "Gregory Ballantine <gballantine@metaunix.net>",
"license": "CC0-1.0", "license": "BSD-2-Clause",
"devDependencies": { "devDependencies": {
"electron": "^18.2.4", "electron": "^18.2.4",
"electron-builder": "^23.0.3",
"grunt": "^1.5.3", "grunt": "^1.5.3",
"grunt-contrib-coffee": "^2.1.0", "grunt-contrib-coffee": "^2.1.0",
"grunt-contrib-copy": "^1.0.0", "grunt-contrib-copy": "^1.0.0",
@ -26,5 +26,23 @@
}, },
"dependencies": { "dependencies": {
"ldapjs": "^2.3.2" "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"
}
} }
} }