Skip to content

Commit

Permalink
Merge pull request #2710 from microsoft/dev
Browse files Browse the repository at this point in the history
Patch demo license
  • Loading branch information
freddydk authored Sep 27, 2022
2 parents b8a3a3f + b89ebe8 commit b412bb6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ContainerHandling/New-NavContainer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,17 @@ try {
$appManifestPath = Join-Path $appArtifactPath "manifest.json"
$appManifest = Get-Content $appManifestPath | ConvertFrom-Json

if ($appManifest.version -like "21.0.*" -and $licenseFile -eq "") {
Write-Host "The CRONUS Demo License shipped in Version 21.0 artifacts doesn't contain sufficient rights to all Test Libraries objects. Patching the license file."
$country = $appManifest.Country.ToLowerInvariant()
if (@('at','au','be','ca','ch','cz','de','dk','es','fi','fr','gb','in','is','it','mx','nl','no','nz','ru','se','us') -contains $country) {
$licenseFile = "https://bcartifacts.azureedge.net/prerequisites/21demolicense/$country/3048953.bclicense"
}
else {
$licenseFile = "https://bcartifacts.azureedge.net/prerequisites/21demolicense/w1/3048953.bclicense"
}
}

if ($runSandboxAsOnPrem -and $appManifest.version -lt [Version]"18.0.0.0") {
$runSandboxAsOnPrem = $false
Write-Host -ForegroundColor Red "Cannot run sandbox artifacts before version 18 as onprem"
Expand Down
1 change: 1 addition & 0 deletions ReleaseNotes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Issue #2652 Support Run-AlPipeline with appRevision only
Issue #2704 Wrong package name since today
Change country mappings for countries hosted with Brazil app service
Patch wrong DEMO license file in Business Central 21.0 artifacts

4.0.3
Support for specifying STANDARD or EXTENDED in UploadImportAndApply-ConfigPackageInBcContainer
Expand Down

0 comments on commit b412bb6

Please sign in to comment.