How to use the electron-winstaller.createWindowsInstaller function in electron-winstaller

To help you get started, we’ve selected a few electron-winstaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github kura52 / sushi-browser / tools / productionBuildPartical.js View on Github external
sh.mv('app.asar.unpacked/resource/extension/default/1.0_0/css/semantic-ui/themes/default/assets2',
    'app.asar.unpacked/resource/extension/default/1.0_0/css/semantic-ui/themes/default/assets')
  sh.mv('app/resource/css/semantic-ui/themes/default/assets2','app/resource/css/semantic-ui/themes/default/assets')
  if(sh.exec('asar pack app app.asar').code !== 0) {
    console.log("ERROR7")
    process.exit()
  }
  sh.rm('-rf','app')
  sh.cd(pwd)

  muonModify()

  if (isWindows) {
    const electronInstaller = require('electron-winstaller')
    const resultPromise = electronInstaller.createWindowsInstaller({
      appDirectory: buildDir,
      outputDirectory: outDir,
      title: 'Sushi Browser',
      authors: 'kura52',
      loadingGif: 'res/install.gif',
      // loadingGif: 'res/brave_splash_installing.gif',
      setupIcon: 'res/app.ico',
      iconUrl: 'https://sushib.me/favicon.ico',
      // signWithParams: format('-a -fd sha256 -f "%s" -p "%s" -t http://timestamp.verisign.com/scripts/timstamp.dll', path.resolve(cert), certPassword),
      noMsi: true,
      exe: 'sushi-browser.exe'
    })
    resultPromise.then(() => {
      // sh.mv(`${outDir}/Setup.exe`,`${outDir}/sushi-browser-setup-${arch}.exe`)
    }, (e) => console.log(`No dice: ${e.message}`))
  }
github mdyna / mdyna-app / win-build.js View on Github external
/* eslint-disable */
var electronInstaller = require('electron-winstaller');
var MdynaPath = '/home/david/projects/dyna/';
var resultPromise = electronInstaller.createWindowsInstaller({
      appDirectory: MdynaPath,
      outputDirectory: MdynaPath + 'builds',
      authors: 'David Morais',
      exe: 'dyna.exe'
    });

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
github desktop / desktop / script / package.ts View on Github external
setupExe: getWindowsStandaloneName(),
    setupMsi: getWindowsInstallerName(),
  }

  if (shouldMakeDelta()) {
    options.remoteReleases = getUpdatesURL()
  }

  if (isAppveyor()) {
    const certificatePath = path.join(__dirname, 'windows-certificate.pfx')
    options.signWithParams = `/f ${certificatePath} /p ${
      process.env.WINDOWS_CERT_PASSWORD
    } /tr http://timestamp.digicert.com /td sha256`
  }

  electronInstaller
    .createWindowsInstaller(options)
    .then(() => {
      console.log(`Installers created in ${outputDir}`)
      cp.execSync(`powershell ${cleanupCertificatePath}`)
    })
    .catch(e => {
      cp.execSync(`powershell ${cleanupCertificatePath}`)
      console.error(`Error packaging: ${e}`)
      process.exit(1)
    })
}
github urbanogardun / monte-note / package-app-installer.js View on Github external
var electronInstaller = require('electron-winstaller');
var path = require('path');

resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: path.join(__dirname, 'MonteNote-win32-x64'),
    outputDirectory: path.join(__dirname, 'MonteNote-win32-x64-installer64'),
    name: 'MonteNote',
    authors: 'Urbano Gardun',
    description: 'Note taking application with a rich set of editing and management features.',
    setupIcon: path.join(__dirname, 'src', 'assets', 'icons', 'win', 'icon.ico'),
    iconUrl: path.join(__dirname, 'src', 'assets', 'icons', 'win', 'icon.ico'),
    setupExe: 'MonteNote.exe',
    exe: 'MonteNote.exe'
  });

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
github ramboxapp / community-edition / build / winstaller.js View on Github external
'use strict';
var electronInstaller = require('electron-winstaller');

var arch = process.argv.slice(2)[0];

if ( !arch ) {
    console.error('No Architecture paramenter specified. [ia32 or x64]');
    return;
}

//var appData = require('../app/package.json');

var resultPromise = electronInstaller.createWindowsInstaller({
     appDirectory: './dist/Rambox-win32-'+arch
    ,outputDirectory: './dist/setup-'+arch
    ,title: 'Rambox'
    ,loadingGif: './resources/installer/loading.gif'
    ,authors: 'Rambox'
    ,owners: 'Rambox'
    ,exe: 'Rambox.exe'
    ,setupExe: 'RamboxSetup.exe'
    ,noMsi: true
    ,iconUrl: 'https://raw.githubusercontent.com/saenzramiro/rambox/master/resources/installer/icons/64x64.png'
    ,setupIcon: './resources/Icon.ico'
    //,remoteReleases: 'https://getrambox.herokuapp.com/update/'+process.platform+'/'+process.arch+'/'+appData.version
});

console.log('Creating installer... Please wait...')
github PancakeBot / PancakePainter / build / tasks / build-task.js View on Github external
grunt.registerTask('build-win-install', 'Create Windows Installer.', function(){
    var electronInstaller = require('electron-winstaller');
    var config = conf('create-windows-installer');
    var done = this.async();
    console.log("Building ia32 installer...");

    electronInstaller.createWindowsInstaller(config['32']).then(function() {
      console.log("Completed ia32 installer build, building x64 installer...");
      electronInstaller.createWindowsInstaller(config['64']).then(function(){
        console.log("Completed x64 installer build successfully! Running post build.");
        done();
        grunt.task.run('build-win-install-post');
      }, function(e) {
        console.log(`x64 installer build failure: ${e.message}`);
      });
    }, function(e) {
      console.log(`ia32 installer build failure: ${e.message}`);
    });
  });
github PreMiD / PreMiD / createInstaller.js View on Github external
var electronInstaller = require('electron-winstaller');

resultPromise = electronInstaller.createWindowsInstaller({
  appDirectory: './out/PreMiD-win32-x64',
  outputDirectory: './dist/windows/',
  exe: './PreMiD.exe',
  iconUrl: 'https://raw.githubusercontent.com/Timeraa/YT-Presence/master/appIcon.ico',
  noMsi: true
});

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
github mihirpathak97 / audius / installer.js View on Github external
var electronInstaller = require('electron-winstaller');
resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: 'C:/Users/Mihir/Documents/Projects/Audius/builds/packages/Audius-win32-x64',
    outputDirectory: 'C:/Users/Mihir/Documents/Projects/Audius/builds/installer/win32',
    iconUrl: 'C:/Users/Mihir/Documents/Projects/Audius/assets/audius_inverted_icon.ico',
    setupIcon: 'C:/Users/Mihir/Documents/Projects/Audius/assets/audius_inverted_icon.ico',
    authors: 'Mihir Pathak',
    exe: 'Audius.exe',
    noMsi: true,
    setupExe: 'Audius-0.3.31-x64-setup.exe'
  });

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
github vincentdchan / MDE / winstall.js View on Github external
var electronInstaller = require("electron-winstaller");

var resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: "./dist/win-unpacked",
    outputDirectory: "./dist",
    authors: "DZ Chan",
    exe: "myapp.exe",
    title: "MDE",
    name: "MDE",
    iconUrl: "./build_resources/icon.ico",
    setupIcon: "./build_resources/icon.ico",
    certificateFile: "../MyKey.pfx"
});

resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));
github adopted-ember-addons / ember-electron / lib / utils / ship-win.js View on Github external
}

    if (typeof certificateFile === 'string') {
      installerOptions.certificateFile = certificateFile
    }

    if (typeof certificatePassword === 'string') {
      installerOptions.certificatePassword = certificatePassword
    }

    if (typeof signWithParams === 'string') {
      installerOptions.signWithParams = signWithParams
    }
  }

  return electronWinstaller.createWindowsInstaller(installerOptions)
}

electron-winstaller

Module to generate Windows installers for Electron apps

MIT
Latest version published 4 months ago

Package Health Score

74 / 100
Full package analysis

Similar packages