Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Top 10 Examples of "electron-winstaller in functional component" in JavaScript

Dive into secure and efficient coding practices with our curated list of the top 10 examples showcasing 'electron-winstaller' in functional components in JavaScript. Our advanced machine learning engine meticulously scans each line of code, cross-referencing millions of open source libraries to ensure your implementation is not just functional, but also robust and secure. Elevate your React applications to new heights by mastering the art of handling side effects, API calls, and asynchronous operations with confidence and precision.

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}`))
  }
/* 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}`));
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)
    })
}
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}`));
'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...')
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}`);
    });
  });
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}`));
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}`));
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}`));
}

    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)
}

Is your System Free of Underlying Vulnerabilities?
Find Out Now