-
Notifications
You must be signed in to change notification settings - Fork 27
/
build-msi.js
36 lines (31 loc) · 1 KB
/
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
32
33
34
35
36
const MSICreator = require('electron-wix-msi-qrl').MSICreator;
const buildConfig = require('./build-conf.js')
// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
appDirectory: buildConfig.windows.electronPath,
description: buildConfig.name,
exe: buildConfig.windows.exeName,
name: buildConfig.name,
manufacturer: buildConfig.manufacturer,
version: buildConfig.version,
outputDirectory: buildConfig.windows.outPath,
programFilesFolderName: buildConfig.windows.installFolderName,
shortcutFolderName: buildConfig.name,
ui: {
enabled: true,
chooseDirectory: false,
images: {
exclamationIcon: buildConfig.windows.icon,
infoIcon: buildConfig.windows.icon,
}
}
});
async function build() {
// Step 2: Create a .wxs template file
await msiCreator.create();
// Step 3: Compile the template to a .msi file
await msiCreator.compile();
console.log('Successfully created installer.')
}
console.log('Building Windows MSI Installer for QRLWallet')
build();