Fix windows build process (avoid asar)

This commit is contained in:
mmcwilliams 2020-04-29 10:06:51 -04:00
parent ed0175b733
commit fb63bade2f
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
const { MSICreator } = require('electron-wix-msi');
const package = require('package.json')
// Step 1: Instantiate the MSICreator
const msiCreator = new MSICreator({
@ -7,7 +8,7 @@ const msiCreator = new MSICreator({
exe: 'mcopy',
name: 'mcopy',
manufacturer: 'sixteenmillimeter.com',
version: '2.0.0',
version: package.version,
outputDirectory: '../dist/'
});

View File

@ -1,6 +1,6 @@
#!/bin/bash
./node_modules/.bin/electron-packager . mcopy --overwrite --asar=true --platform=win32 --arch=x64 --icon=assets/icons/icon.ico --prune=true --out=../dist --version-string.CompanyName="sixteenmillimeter.com" --version-string.FileDescription="Open Source Optical Printer Platform" --version-string.ProductName="mcopy"
./node_modules/.bin/electron-packager . mcopy --overwrite --platform=win32 --arch=x64 --icon=assets/icons/icon.ico --prune=true --out=../dist --version-string.CompanyName="sixteenmillimeter.com" --version-string.FileDescription="Open Source Optical Printer Platform" --version-string.ProductName="mcopy"
mkdir ../dist/installers