diff --git a/tools/releaseBuild/Images/GenericLinuxFiles/PowerShellPackage.ps1 b/tools/releaseBuild/Images/GenericLinuxFiles/PowerShellPackage.ps1 index 9b18349222f..80f6a92f869 100644 --- a/tools/releaseBuild/Images/GenericLinuxFiles/PowerShellPackage.ps1 +++ b/tools/releaseBuild/Images/GenericLinuxFiles/PowerShellPackage.ps1 @@ -12,7 +12,7 @@ param ( [ValidateNotNullOrEmpty()] [string]$ReleaseTag, - [ValidateSet("AppImage", "tar")] + [ValidateSet("AppImage", "tar", "tar-arm")] [string[]]$ExtraPackage ) @@ -37,6 +37,13 @@ try { "AppImage" { Start-PSPackage -Type AppImage @releaseTagParam } "tar" { Start-PSPackage -Type tar @releaseTagParam } } + + if ($ExtraPackage -contains "tar-arm") { + ## Build 'linux-arm' and create 'tar.gz' package for it. + ## Note that 'linux-arm' can only be built on Ubuntu environment. + Start-PSBuild -Runtime linux-arm -PSModuleRestore @releaseTagParam + Start-PSPackage -Type tar-arm @releaseTagParam + } } finally { diff --git a/tools/releaseBuild/build.json b/tools/releaseBuild/build.json index cdeddbc0e37..a7ee5c9fd3d 100644 --- a/tools/releaseBuild/build.json +++ b/tools/releaseBuild/build.json @@ -113,7 +113,7 @@ { "Name": "ubuntu.14.04", "RepoDestinationPath": "/PowerShell", - "BuildCommand": "/PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -ReleaseTag _ReleaseTag_ -ExtraPackage AppImage", + "BuildCommand": "/PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -ReleaseTag _ReleaseTag_ -ExtraPackage AppImage,tar,tar-arm", "BuildDockerOptions": [ "--cap-add", "SYS_ADMIN", @@ -140,7 +140,7 @@ { "Name": "centos.7", "RepoDestinationPath": "/PowerShell", - "BuildCommand": "/PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -ReleaseTag _ReleaseTag_ -ExtraPackage tar", + "BuildCommand": "/PowerShellPackage.ps1 -location _RepoDestinationPath_ -destination _DockerVolume_ -ReleaseTag _ReleaseTag_", "AdditionalContextFiles" :[ "./tools/releaseBuild/Images/GenericLinuxFiles/PowerShellPackage.ps1"], "DockerFile": "./tools/releaseBuild/Images/microsoft_powershell_centos7/Dockerfile", "DockerImageName": "ps-centos-7",