Build命令:
electron-builder build Build [默认值]
electron-builder install-app-deps Install app deps
electron-builder node-gyp-rebuild Rebuild own native code
electron-builder create-self-signed-cert Create self-signed code signing cert
for Windows apps
electron-builder start Run application in a development
mode using electron-webpack
Building:
-m, -o, --mac, --macos Build for macOS, accepts target list (see
https://goo.gl/5uHuzj). [数组]
-l, --linux Build for Linux, accepts target list (see
https://goo.gl/4vwQad) [数组]
-w, --win, --windows Build for Windows, accepts target list (see
https://goo.gl/jYsTEJ) [数组]
--x64 Build for x64 [布尔]
--ia32 Build for ia32 [布尔]
--armv7l Build for armv7l [布尔]
--arm64 Build for arm64 [布尔]
--universal Build for universal [布尔]
--dir Build unpacked dir. Useful to test. [布尔]
--prepackaged, --pd The path to prepackaged app (to pack in a
distributable format)
--projectDir, --project The path to project directory. Defaults to
current working directory.
-c, --config The path to an electron-builder config. Defaults
to `electron-builder.yml` (or `json`, or
`json5`), see https://goo.gl/YFRJOM
Publishing:
-p, --publish Publish artifacts, see https://goo.gl/tSFycD
[可选值: "onTag", "onTagOrDraft", "always", "never", undefined]
Other:
--help 显示帮助信息 [布尔]
--version 显示版本号 [布尔]
示例:
electron-builder -mwl build for macOS, Windows and Linux
electron-builder --linux deb tar.xz build deb and tar.xz for Linux
electron-builder --win --ia32 build for Windows ia32
electron-builder set package.json property `foo` to
-c.extraMetadata.foo=bar `bar`
electron-builder configure unicode options for NSIS
--config.nsis.unicode=false
See https://electron.build for more documentation.