mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
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.
This commit is contained in:
parent
fe77367837
commit
0cd4fb1da0
@ -40,7 +40,7 @@ function getBrowserVersionMap(platforms) {
|
||||
[buildType, buildVersion] = prerelease;
|
||||
if (!String(buildVersion).match(/^\d+$/u)) {
|
||||
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}`);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user