Allow Flask prerelease versions (#13156)

The build script only allowed prerelease versions for the "beta" build
type (e.g. `X.Y.Z-beta.0`). Now it allows Flask prerelease versions as
well.

This is required for the Flask release, where the prerelease version
helps distinguish the Flask error reports and metrics.
feature/default_network_editable
Mark Stacey 3 years ago committed by GitHub
parent fe77367837
commit 0cd4fb1da0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      development/build/utils.js

@ -40,7 +40,7 @@ function getBrowserVersionMap(platforms) {
[buildType, buildVersion] = prerelease; [buildType, buildVersion] = prerelease;
if (!String(buildVersion).match(/^\d+$/u)) { if (!String(buildVersion).match(/^\d+$/u)) {
throw new Error(`Invalid prerelease build version: '${buildVersion}'`); throw new Error(`Invalid prerelease build version: '${buildVersion}'`);
} else if (buildType !== BuildType.beta) { } else if (![BuildType.beta, BuildType.flask].includes(buildType)) {
throw new Error(`Invalid prerelease build type: ${buildType}`); throw new Error(`Invalid prerelease build type: ${buildType}`);
} }
} }

Loading…
Cancel
Save