Created create-installer scripts

This commit is contained in:
Joel Collins 2019-02-27 17:00:44 +00:00
parent bddeebb2a9
commit 8ab47f9e42
8 changed files with 452 additions and 42 deletions

View file

@ -0,0 +1,24 @@
const installer = require('electron-installer-debian')
const path = require('path')
const options = {
src: path.join(__dirname, '../release-builds/openflexure-microscope-js-linux-armv7l/'),
dest: path.join(__dirname, '/release-builds'),
arch: 'armhf',
icon: path.join(__dirname, '../icons/png/1024x1024.png'),
categories: [
"Science"
],
lintianOverrides: [
"changelog-file-missing-in-native-package"
]
}
console.log('Creating package (this may take a while)')
installer(options)
.then(() => console.log(`Successfully created package at ${options.dest}`))
.catch(err => {
console.error(err, err.stack)
process.exit(1)
})