-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateInstaller.js
More file actions
28 lines (24 loc) · 881 Bytes
/
createInstaller.js
File metadata and controls
28 lines (24 loc) · 881 Bytes
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
27
28
const createWindowsInstaller = require('electron-winstaller').createWindowsInstaller;
const path = require('path');
function getInstallerConfig() {
console.log('Creating installer...');
const rootPath = path.join('./');
const outPath = path.join(rootPath, 'out');
return Promise.resolve({
appDirectory: path.join(outPath, 'tribeslauncher-win32-ia32'),
title: 'TribesLauncher',
authors: 'mcoot',
noMsi: true,
outputDirectory: path.join(outPath, 'installer'),
exe: 'tribeslauncher.exe',
setupExe: 'TribesLauncherSetup.exe',
setupIcon: './src/main/icon.ico'
// setupIcon: path.join(rootPath, 'assets', 'icons', 'win', 'icon.ico')
});
}
getInstallerConfig()
.then(createWindowsInstaller)
.catch((err) => {
console.error(err.message || err);
process.exit(1);
});