Skip to content

Commit c1af4db

Browse files
committed
Creation of Installer
Creation of Windows installation files
1 parent 03da95d commit c1af4db

3 files changed

Lines changed: 21 additions & 4 deletions

File tree

forge.config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ module.exports = {
99
makers: [
1010
{
1111
name: '@electron-forge/maker-squirrel',
12-
config: {},
12+
config: {
13+
name: 'RotelA14Control',
14+
authors: "Tug O'Flaherty",
15+
description: "Rotel A14 Network Control Application",
16+
setupIcon: "./dist/favicon.ico",
17+
noMsi: true
18+
},
1319
},
1420
{
1521
name: '@electron-forge/maker-zip',
16-
platforms: ['darwin'],
22+
platforms: ['darwin', 'linux'],
1723
},
1824
{
1925
name: '@electron-forge/maker-deb',

main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
const { app, BrowserWindow, Menu } = require('electron');
22
const path = require('path');
3+
const squirrelStartup = require('electron-squirrel-startup');
4+
5+
if (squirrelStartup) {
6+
app.quit();
7+
}
38

49
function createWindow() {
510
const mainWindow = new BrowserWindow({

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,20 @@
66
"scripts": {
77
"start": "electron-forge start",
88
"package": "electron-forge package",
9-
"make": "electron-forge make"
9+
"make": "electron-forge make",
10+
"publish": "electron-forge publish",
11+
"lint": "echo \"No linting configured\""
12+
},
13+
"build": {
14+
"appId": "com.tugoflaherty.basicrotelcontrolapp"
1015
},
1116
"keywords": [],
1217
"author": "Tug O'Flaherty",
1318
"license": "MIT",
1419
"description": "Basic Rotel Control Desktop App Distribution using Electron",
1520
"dependencies": {
16-
"electron-squirrel-startup": "^1.0.1"
21+
"electron-squirrel-startup": "^1.0.1",
22+
"electron": "^30.1.0"
1723
},
1824
"devDependencies": {
1925
"@electron-forge/cli": "^7.4.0",

0 commit comments

Comments
 (0)