From 601e5b3226f2c702f14b0196aa56abbc608362a0 Mon Sep 17 00:00:00 2001 From: M McWilliams Date: Tue, 30 Jan 2018 04:08:35 -0500 Subject: [PATCH] Build windows .msi script --- app/build_win.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/build_win.js diff --git a/app/build_win.js b/app/build_win.js new file mode 100644 index 0000000..b1c1b1b --- /dev/null +++ b/app/build_win.js @@ -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) \ No newline at end of file