-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
21 lines (18 loc) · 739 Bytes
/
Copy pathbuild.js
File metadata and controls
21 lines (18 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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: './',
// Specify the existing folder where
outputDirectory: '../EvoPhoneConsole-win32-x64',
// The name of the Author of the app (the name of your company)
authors: 'TouchstoneIQ',
// The name of the executable of your built
exe: './EvoPhoneConsole.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}`)
});