-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
executable file
·29 lines (25 loc) · 903 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const electronInstaller = require("electron-winstaller");
// In this case, we can use relative paths
const settings = {
// Specify the folder where the built app is located
appDirectory: "./fofx-notifier-app-win32-x64",
// Specify the existing folder where
outputDirectory: "./fofx-installers",
// The name of the Author of the app (the name of your company)
authors: "dipoleDiamond LTD",
// The name of the executable of your built
exe: "./fofx-notifier-app.exe",
// The name to use for the generated Setup.exe file
setupExe: "fofxAcademy Attendance Reminder"
};
resultPromise = electronInstaller.createWindowsInstaller(settings);
resultPromise.then(
() => {
console.log(
"The installers of your application were succesfully created !"
);
},
e => {
console.log(`Well, sometimes you are not so lucky: ${e.message}`);
}
);