-
Notifications
You must be signed in to change notification settings - Fork 6
/
build-msi.js
31 lines (28 loc) · 966 Bytes
/
build-msi.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
30
31
const path = require('path');
const { MSICreator } = require('electron-wix-msi');
const msiCreator = new MSICreator({
appDirectory: path.resolve(__dirname, 'out', 'sete-win32-x64'),
outputDirectory: path.resolve(__dirname, 'out'),
exe: 'sete.exe',
iconUrl: "C:\\Desenvolvimento\\Javascript\\sete\\src\\renderer\\img\\icones\\setelogo.ico",
setupIcon: "C:\\Desenvolvimento\\Javascript\\sete\\src\\renderer\\img\\icones\\instalador.ico",
name: 'SETE',
ui: {
enabled: true,
chooseDirectory: true,
images: {
background: "C:\\Desenvolvimento\\Javascript\\sete\\src\\renderer\\img\\installer-bg.jpg",
banner: "C:\\Desenvolvimento\\Javascript\\sete\\src\\renderer\\img\\top-bg.jpg",
}
},
description: 'Software de Gestao do Transporte Escolar',
manufacturer: 'CECATE UFG',
language: 1046,
cultures: "pt-BR",
version: '1.0.0'
});
async function build() {
await msiCreator.create();
await msiCreator.compile();
}
build().catch(console.error);