-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.js
25 lines (23 loc) · 1.02 KB
/
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
var electronInstaller = require('electron-winstaller');
var path = require('path');
// In this case, we can use relative paths
var settings = {
// Specify the folder where the built app is located
appDirectory: './Nautilus-win32-x64',
// Specify the existing folder where
outputDirectory: './Nautilus-installers',
// The name of the Author of the app (the name of your company)
authors: 'DJS Racing',
// The name of the executable of your built
exe: './Nautilus.exe',
description: 'DJSR E03 Data Visualization App',
loadingGif: path.join(__dirname, './templates/assets/gif/Nautilus.gif'),
iconUrl: path.join(__dirname, './templates/assets/img/Nautilus.ico'),
setupIcon: path.join(__dirname, './templates/assets/img/Nautilus.ico')
};
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}`)
});