evshiron / nwjs-builder-phoenix

MIT License
288 stars 77 forks source link

Override Configurations via Commandline #19

Open evshiron opened 7 years ago

evshiron commented 7 years ago

It's implemented in electron-builder and supported by yargs. For example, --pkg.name=Project and --config.win.versionStrings.ProductName=Project.

victoroliveira commented 5 years ago

Is it possible to set nwVersion from command line too? Or another possibility to make build.nwVersion in package.json more dynamic like:

{
  config: {
    nwVersion: "0.39.2"
  },
  build: {
    nwVersion: "%npm_package_config_nwVersion%"
  }
}