reenable server builds

This commit is contained in:
Anthony Dresser
2020-08-10 17:49:31 -07:00
parent bc0753a95c
commit 0c0c87184c
7 changed files with 44 additions and 44 deletions

View File

@@ -5,16 +5,16 @@ $Arch = "x64"
$Repo = "$(pwd)"
$Root = "$Repo\.."
# $LegacyServer = "$Root\azuredatastudio-reh-win32-$Arch"
# $ServerName = "azuredatastudio-server-win32-$Arch"
# $Server = "$Root\$ServerName"
# $ServerZipLocation = "$Repo\.build\win32-$Arch\server"
# $ServerZip = "$ServerZipLocation\azuredatastudio-server-win32-$Arch.zip"
$LegacyServer = "$Root\azuredatastudio-reh-win32-$Arch"
$ServerName = "azuredatastudio-server-win32-$Arch"
$Server = "$Root\$ServerName"
$ServerZipLocation = "$Repo\.build\win32-$Arch\server"
$ServerZip = "$ServerZipLocation\azuredatastudio-server-win32-$Arch.zip"
# Create server archive
# New-Item $ServerZipLocation -ItemType Directory # this will throw even when success for we don't want to exec this
# $global:LASTEXITCODE = 0
# exec { Rename-Item -Path $LegacyServer -NewName $ServerName } "Rename Item"
# exec { .\node_modules\7zip\7zip-lite\7z.exe a -tzip $ServerZip $Server -r } "Zip Server"
New-Item $ServerZipLocation -ItemType Directory # this will throw even when success for we don't want to exec this
$global:LASTEXITCODE = 0
exec { Rename-Item -Path $LegacyServer -NewName $ServerName } "Rename Item"
exec { .\node_modules\7zip\7zip-lite\7z.exe a -tzip $ServerZip $Server -r } "Zip Server"
exec { node build/azure-pipelines/common/copyArtifacts.js } "Copy Artifacts"