Browse Source

Updated the windows installer directory and gif

Andrew Chalkley 9 years ago
parent
commit
394371c6a2
2 changed files with 9 additions and 8 deletions
  1. BIN
      resources/loading.gif
  2. 9 8
      scripts/windows-installer.js

BIN
resources/loading.gif


+ 9 - 8
scripts/windows-installer.js

@@ -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();
     });
   });
 }