mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
* use stages * fix indention * add jobs section * fix error * indention * arm64 for macos * other stages not run * fix container * fix * fix stage * skip tests * variable * dependency * fix name error * sts * const * fall back to x64 * pass in variable * universal flavor * fix universal * fix path * remove * special processing * return on error * copy instead of move * restore sts * release * fix error * Fix readme * remove commented code * add comments * add issue * update comment * pr comments * delete universal yml * update the generated js file
35 lines
976 B
PowerShell
35 lines
976 B
PowerShell
Param(
|
|
[string]$sourcesDir,
|
|
[string]$artifactsDir,
|
|
[string]$storageKey,
|
|
[string]$documentDbKey
|
|
)
|
|
|
|
$env:AZURE_STORAGE_ACCESS_KEY_2 = $storageKey
|
|
$env:AZURE_DOCUMENTDB_MASTERKEY = $documentDbKey
|
|
|
|
$VersionJson = Get-Content -Raw -Path "$artifactsDir\version.json" | ConvertFrom-Json
|
|
$Version = $VersionJson.version
|
|
$Quality = $VersionJson.quality
|
|
$CommitId = $VersionJson.commit
|
|
|
|
$Flavors = "x64","arm64","universal"
|
|
$FlavorSuffixes = "","-arm64","-universal"
|
|
|
|
For($i = 0; $i -lt $Flavors.Length; $i++)
|
|
{
|
|
$Flavor = $Flavors[$i]
|
|
$FlavorSuffix = $FlavorSuffixes[$i]
|
|
$ZipName = "azuredatastudio-darwin-$Flavor.zip"
|
|
$Zip = "$artifactsDir\darwin\archive\$ZipName"
|
|
$UploadName = "azuredatastudio-macos$FlavorSuffix-$Version"
|
|
|
|
If (-NOT ($Quality -eq "stable")) {
|
|
$UploadName = "$UploadName-$Quality"
|
|
}
|
|
|
|
$Platform = "darwin$FlavorSuffix"
|
|
|
|
node $sourcesDir\build\azure-pipelines\common\publish.js $Quality $Platform archive "$UploadName.zip" $Version true $Zip $CommitId
|
|
}
|