npm run build now runs like electron-packaer.
npm run build -- --all builds for all platforms and architectures.
To build for specific platforms and architectures,
run npm run build -- --platform=<platform> --arch=<arch>.
<platform> and <arch> can be string or comma-delimited string for multiple targets.
If not specified, the platform/arch of the host computer running Node is used.
e.g. npm run build without any argument will build for your machine's platform and architecture.
For the detail, note https://github.com/electron-userland/electron-packager/blob/master/docs/api.md
npm run build
now runs likeelectron-packaer
.npm run build -- --all
builds for all platforms and architectures. To build for specific platforms and architectures, runnpm run build -- --platform=<platform> --arch=<arch>
.<platform>
and<arch>
can be string or comma-delimited string for multiple targets. If not specified, the platform/arch of the host computer running Node is used. e.g.npm run build
without any argument will build for your machine's platform and architecture. For the detail, note https://github.com/electron-userland/electron-packager/blob/master/docs/api.md