How to use the electron-packager/targets.allOfficialArchsForPlatformAndVersion function in electron-packager

To help you get started, we’ve selected a few electron-packager 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-forge / packages / api / core / src / util / parse-archs.js View on Github external
export default function parseArchs(platform, declaredArch, electronVersion) {
  if (declaredArch === 'all') {
    return allOfficialArchsForPlatformAndVersion(platform, electronVersion) || ['x64'];
  }

  return declaredArch.split(',');
}

electron-packager

Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI

BSD-2-Clause
Latest version published 1 year ago

Package Health Score

58 / 100
Full package analysis