|
@@ -15,26 +15,27 @@ deleteOutputFolder()
|
|
|
process.exit(1);
|
|
|
});
|
|
|
|
|
|
-function getInstallerConfig () {
|
|
|
+function getInstallerConfig() {
|
|
|
const rootPath = path.join(__dirname, '..');
|
|
|
const outPath = path.join(rootPath, 'out');
|
|
|
|
|
|
return Promise.resolve({
|
|
|
- appDirectory: path.join(outPath, 'Flasher.js-win32-x64'),
|
|
|
- iconUrl: 'https://raw.githubusercontent.com/thingssdk/flasher.js/resources/icon.ico',
|
|
|
+ appDirectory: path.join(outPath, 'flasher.js-win32-x64'),
|
|
|
+ iconUrl: 'https://raw.githubusercontent.com/thingssdk/flasher.js/resources/icon.ico',
|
|
|
loadingGif: path.join(rootPath, 'resources', 'loading.gif'),
|
|
|
noMsi: true,
|
|
|
- outputDirectory: path.join(outPath, 'installers', 'windows'),
|
|
|
- setupExe: 'FlasherjsSetup.exe',
|
|
|
+ outputDirectory: path.join(outPath, 'installers'),
|
|
|
+ setupExe: 'flasher.js-setup.exe',
|
|
|
setupIcon: path.join(rootPath, 'resources', 'icon.ico'),
|
|
|
skipUpdateIcon: true
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function deleteOutputFolder () {
|
|
|
+function deleteOutputFolder() {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- rimraf(path.join(__dirname, '..', 'out', 'installers', 'windows'), (error) => {
|
|
|
- error ? reject(error) : resolve()
|
|
|
+ rimraf(path.join(__dirname, '..', 'out', 'installers'), error => {
|
|
|
+ if (error) reject(error);
|
|
|
+ else resolve();
|
|
|
});
|
|
|
});
|
|
|
}
|