mcopy/app/scripts/build_win.js

19 lines
536 B
JavaScript
Raw Normal View History

2018-01-30 09:08:35 +00:00
const { MSICreator } = require('electron-wix-msi');
2020-04-29 14:06:51 +00:00
const package = require('package.json')
2018-01-30 09:08:35 +00:00
// 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',
2020-04-29 14:06:51 +00:00
version: package.version,
2018-01-30 09:08:35 +00:00
outputDirectory: '../dist/'
});
// Step 2: Create a .wxs template file
msiCreator.create();
// Step 3: Compile the template to a .msi file
setTimeout(msiCreator.compile, 30000)