Build命令:
? electron-builder build? ? ? ? ? ? ? ? ? ? Build? ? ? ? ? ? ? ? ? ? ? [默認(rèn)值]
? 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).? ? ? ? ? ? ? ? ? ? [數(shù)組]
? -l, --linux? ? ? ? ? ? ? ? ? Build for Linux, accepts target list (see
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? https://goo.gl/4vwQad)? ? ? ? ? ? ? ? ? ? [數(shù)組]
? -w, --win, --windows? ? ? ? Build for Windows, accepts target list (see
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? https://goo.gl/jYsTEJ)? ? ? ? ? ? ? ? ? ? [數(shù)組]
? ? ? --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.