Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit a6f30a2

Browse files
committed
Bug 1945334 - Make gradle supports beta build. r=firefox-build-system-reviewers,nalexander
Remove 'b[0-9]' from MOZ_APP_VERSION before computing version code. MOZ_APP_VERSION is "136.0b0" with "--as-milestone=early-beta". However, computeVersionCode() in m-c/build.gradle fails to parse it. It supports only "136.0a0" or alike. Differential Revision: https://phabricator.services.mozilla.com/D236463
1 parent 4b1c987 commit a6f30a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@ ext.geckoBinariesOnlyIf = { task ->
239239
return true
240240
}
241241

242-
// Non-official versions are like "61.0a1", where "a1" is the milestone.
242+
// Non-official versions are like "61.0a1" or "61.0b1", where "a1" and "b1"
243+
// are the milestone.
243244
// This simply strips that off, leaving "61.0" in this example.
244245
def getAppVersionWithoutMilestone() {
245-
return project.ext.mozconfig.substs.MOZ_APP_VERSION.replaceFirst(/a[0-9]/, "")
246+
return project.ext.mozconfig.substs.MOZ_APP_VERSION.replaceFirst(/[ab][0-9]/, "")
246247
}
247248

248249
// This converts MOZ_APP_VERSION into an integer

0 commit comments

Comments
 (0)