-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
23 lines (20 loc) · 817 Bytes
/
build.js
File metadata and controls
23 lines (20 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
var electronInstaller = require('electron-winstaller');
// In this case, we can use relative paths
var settings = {
// Specify the folder where the built app is located
appDirectory: './electron_begin-win32-x64',
// Specify the existing folder where
outputDirectory: './electron_begin_installer',
// The name of the Author of the app (the name of your company)
authors: 'Erluan',
// The App Description
description: 'test description',
// The name of the executable of your built
exe: './electron_begin.exe'
};
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}`)
});