forked from microsoft/BCApps
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f7a4c6
commit 7d110d5
Showing
9 changed files
with
50 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,8 @@ | ||
Param( | ||
[Hashtable]$parameters | ||
) | ||
$keepApps = @() | ||
|
||
$projectSettings = Get-Content (Join-Path $PSScriptRoot "settings.json" -Resolve) | ConvertFrom-Json | ||
if ($projectSettings.useProjectDependencies -eq $false) { | ||
$keepApps = @("System Application", "Business Foundation", "Base Application", "Application") | ||
} | ||
$externalDependencies = (Get-Content (Join-Path $PSScriptRoot "customSettings.json" -Resolve) | ConvertFrom-Json).ExternalAppDependencies | ||
|
||
$script = Join-Path $PSScriptRoot "../../../scripts/NewBcContainer.ps1" -Resolve | ||
. $script -parameters $parameters -keepApps $keepApps | ||
. $script -parameters $parameters -keepApps $externalDependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 2 additions & 15 deletions
17
build/projects/Add-Ons (W1)/.AL-Go/PublishBcContainerApp.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,4 @@ | ||
Param([Hashtable]$parameters) | ||
|
||
try { | ||
$parameters["scope"] = "Tenant" | ||
$parameters["ignoreIfAppExists"] = $true | ||
if (Test-BcContainer -containerName $parameters.ContainerName) { | ||
Publish-BcContainerApp @parameters | ||
} | ||
} catch { | ||
# Sometimes Publishing fails after publishing "Application" | ||
# error AL1024: A package with publisher 'Microsoft', name 'Application', and a version compatible with '25.0.0.0' could not be loaded. Value cannot be null. (Parameter 'appId') | ||
# Restarting the container fixes this issue | ||
Restart-NavContainer -containerName $parameters.ContainerName | ||
if (Test-BcContainer -containerName $parameters.ContainerName) { | ||
Publish-BcContainerApp @parameters | ||
} | ||
} | ||
$parameters["useDevEndpoint"] = $true | ||
Publish-BcContainerApp @parameters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"ExternalAppDependencies" : [ | ||
"System Application", | ||
"Business Foundation", | ||
"Base Application", | ||
"Application" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters