Address feedback
This commit is contained in:
parent
f6593a76ec
commit
4e8ff8d04a
3 changed files with 14 additions and 17 deletions
|
@ -163,7 +163,12 @@ let winMuslReferenceTemplate: ReferenceTemplate = {
|
|||
|
||||
let formatTemplate (platform: String) (template: ReferenceTemplate) (branch: Branch): Option<string> =
|
||||
if branch.AkaMsChannel <> None then
|
||||
if branch.UseLegacyAkaMsTemplate then
|
||||
let useLegacyAkaMsTemplate =
|
||||
match getMajorMinor branch with
|
||||
| Master -> false
|
||||
| MajorMinor { Major = major; Minor = _minor; Patch = patch } when major = 5 && patch < 300 -> true
|
||||
| _ -> false
|
||||
if useLegacyAkaMsTemplate then
|
||||
Some (String.Format(template.AkaMSLegacyTemplate,
|
||||
platform, // 0 - win-x64
|
||||
(branchNameShorten branch), // 1 - 5.0.1xx-preview2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue