Build windows .msi script

This commit is contained in:
M McWilliams 2018-01-30 04:08:35 -05:00
parent 63e081afe4
commit 601e5b3226
1 changed files with 18 additions and 0 deletions

18
app/build_win.js Normal file
View File

@ -0,0 +1,18 @@
const { MSICreator } = require('electron-wix-msi');
// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
appDirectory: '../dist/mcopy-win32-x64',
description: 'mcopy optical printer GUI',
exe: 'mcopy',
name: 'mcopy',
manufacturer: 'sixteenmillimeter.com',
version: '2.0.0',
outputDirectory: '../dist/'
});
// Step 2: Create a .wxs template file
msiCreator.create();
// Step 3: Compile the template to a .msi file
setTimeout(msiCreator.compile, 30000)