From 8166267d487cd26b154e28cf60d89102a487a353 Mon Sep 17 00:00:00 2001 From: Dave Jeffery Date: Sun, 28 Aug 2022 20:54:28 +0100 Subject: [PATCH] fix: allow user to define explicit `buildNumber` in config, useful for fpm `--iteration` flag (#7075) --- .changeset/tidy-singers-carry.md | 7 +++++++ docs/configuration/configuration.md | 5 ++++- packages/app-builder-lib/scheme.json | 9 ++++++++- packages/app-builder-lib/src/appInfo.ts | 3 ++- packages/app-builder-lib/src/configuration.ts | 8 +++++++- packages/app-builder-lib/src/targets/fpm.ts | 15 +++++++++++---- packages/app-builder-lib/src/winPackager.ts | 2 +- packages/builder-util/src/util.ts | 3 ++- .../electron-builder/src/cli/install-app-deps.ts | 2 +- 9 files changed, 43 insertions(+), 11 deletions(-) create mode 100644 .changeset/tidy-singers-carry.md diff --git a/.changeset/tidy-singers-carry.md b/.changeset/tidy-singers-carry.md new file mode 100644 index 00000000000..8b12cede991 --- /dev/null +++ b/.changeset/tidy-singers-carry.md @@ -0,0 +1,7 @@ +--- +"app-builder-lib": minor +"electron-builder": minor +"builder-util": patch +--- + +Allow explicit `buildNumber` in config. `buildNumber` will take precedence over any environment variables (#6945) diff --git a/docs/configuration/configuration.md b/docs/configuration/configuration.md index ad076af76e5..7840161ede8 100644 --- a/docs/configuration/configuration.md +++ b/docs/configuration/configuration.md @@ -92,11 +92,14 @@ Env file `electron-builder.env` in the current dir ([example](https://github.com
  • npmRebuild = true Boolean - Whether to rebuild native dependencies before starting to package the app.

  • +
  • +

    buildNumber String | “undefined” - The build number. Maps to the --iteration flag for builds using FPM on Linux. If not defined, then it will fallback to BUILD_NUMBER or TRAVIS_BUILD_NUMBER or APPVEYOR_BUILD_NUMBER or CIRCLE_BUILD_NUM or BUILD_BUILDNUMBER or CI_PIPELINE_IID env.

    +