How to use the app-builder-lib/out/wine.prepareWindowsExecutableArgs function in app-builder-lib

To help you get started, we’ve selected a few app-builder-lib 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 electron-userland / electron-builder / packages / electron-builder-squirrel-windows / src / squirrelPack.ts View on Github external
function execSw(options: SquirrelOptions, args: Array) {
  return exec(process.platform === "win32" ? path.join(options.vendorPath, "Update.com") : "mono", prepareArgs(args, path.join(options.vendorPath, "Update-Mono.exe")), {
    env: {
      ...process.env,
      SZA_PATH: path7za,
    }
  })
}
github electron-userland / electron-builder / packages / electron-builder-squirrel-windows / src / squirrelPack.ts View on Github external
function syncReleases(outputDirectory: string, options: SquirrelOptions) {
  log.info("syncing releases to build delta package")
  const args = prepareArgs(["-u", options.remoteReleases!, "-r", outputDirectory], path.join(options.vendorPath, "SyncReleases.exe"))
  if (options.remoteToken) {
    args.push("-t", options.remoteToken)
  }
  return spawn(process.platform === "win32" ? path.join(options.vendorPath, "SyncReleases.exe") : "mono", args)
}