Update platform for new version manifest generator (#29)

* Update build-python-packages.yml

* update platforms

* fix platform conditions

* add clean up
This commit is contained in:
Maxim Lobanov
2020-06-03 20:38:34 +03:00
committed by GitHub
parent 06026eac83
commit 2a3a8176d7
7 changed files with 28 additions and 61 deletions

View File

@ -56,11 +56,11 @@ function Get-PythonBuilder {
)
$Platform = $Platform.ToLower()
if ($Platform -match 'windows') {
if ($Platform -match 'win32') {
$builder = [WinPythonBuilder]::New($Version, $Architecture, $Platform)
} elseif ($Platform -match 'ubuntu') {
} elseif ($Platform -match 'linux') {
$builder = [UbuntuPythonBuilder]::New($Version, $Architecture, $Platform)
} elseif ($Platform -match 'macos') {
} elseif ($Platform -match 'darwin') {
$builder = [macOSPythonBuilder]::New($Version, $Architecture, $Platform)
} else {
Write-Host "##vso[task.logissue type=error;] Invalid platform: $Platform"