Created create-installer scripts
This commit is contained in:
parent
bddeebb2a9
commit
8ab47f9e42
8 changed files with 452 additions and 42 deletions
23
installers/create-exe.js
Normal file
23
installers/create-exe.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller
|
||||
const path = require('path')
|
||||
|
||||
getInstallerConfig()
|
||||
.then(createWindowsInstaller)
|
||||
.catch((error) => {
|
||||
console.error(error.message || error)
|
||||
process.exit(1)
|
||||
})
|
||||
|
||||
function getInstallerConfig () {
|
||||
console.log('creating windows installer')
|
||||
|
||||
return Promise.resolve({
|
||||
appDirectory: path.join(__dirname, '../release-builds/openflexure-microscope-js-win32-x64'),
|
||||
authors: 'OpenFlexure',
|
||||
noMsi: true,
|
||||
outputDirectory: path.join(__dirname, '/release-builds'),
|
||||
exe: 'openflexure-microscope-js.exe',
|
||||
setupExe: 'OpenFlexureMicroscopeJsInstaller.exe',
|
||||
setupIcon: path.join(__dirname, '../icons/win/icon.ico')
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue