Commit 8ab47f9e authored by Joel Collins's avatar Joel Collins
Browse files

Created create-installer scripts

parent bddeebb2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
node_modules
/dist
/release-builds
/installers/release-builds

# local env files
.env.local

debian.json

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
{
  "dest": "release-builds/",
  "icon": "icons/png/1024x1024.png",
  "categories": [
    "Science"
  ],
  "lintianOverrides": [
    "changelog-file-missing-in-native-package"
  ]
}
 No newline at end of file
+16 −0
Original line number Diff line number Diff line
const convertToWindowsStore = require('electron-windows-store')
const path = require('path')

convertToWindowsStore({
   containerVirtualization: false,
   inputDirectory: path.join(__dirname, '../release-builds/openflexure-microscope-js-win32-x64'),
   outputDirectory: path.join(__dirname, '/release-builds'),
   assets: path.join(__dirname, '/appx/assets'),
   manifest: path.join(__dirname, '/appx/AppXManifest.xml'),
   packageName: 'OpenFlexureMicroscopeJS',
   deploy: false,
   publisher: 'CN=bath-open-instrumentation-group',
   publisherDisplayName: "Bath Open Instrumentation Group",
   devCert: "C:\\Users\\jtc92\\AppData\\Roaming\\electron-windows-store\\bath-open-instrumentation-group\\bath-open-instrumentation-group.pfx",
   windowsKit: 'C:\\Program Files (x86)\\Windows Kits\\10\\bin\\10.0.17763.0\\x64'
})
 No newline at end of file
+24 −0
Original line number Diff line number Diff line
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)
  })
 No newline at end of file
+24 −0
Original line number Diff line number Diff line
const installer = require('electron-installer-debian')
const path = require('path')

const options = {
  src: path.join(__dirname, '../release-builds/openflexure-microscope-js-linux-x64/'),
  dest: path.join(__dirname, '/release-builds'),
  arch: 'amd64',
  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)
  })
 No newline at end of file
Loading