summaryrefslogtreecommitdiff
path: root/createInstaller.js
blob: 14babb1f29d0dc8ab2579b29abe6377a50b3ad8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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')
  const rootPath = path.join('./')
  const outPath = path.join(rootPath, 'release-builds')

  return Promise.resolve({
    appDirectory: path.join(outPath, 'Pow! Comics Reader-win32-x64'),
    authors: 'fox',
    noMsi: true,
    outputDirectory: path.join(outPath, 'installer'),
    exe: 'Pow! Comics Reader.exe',
    setupExe: 'setup.exe',
    setupIcon: path.join(rootPath, 'img', 'ic_launcher.ico')
  });
}