mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-03 09:35:40 -05:00
21 lines
813 B
PowerShell
21 lines
813 B
PowerShell
. build/azure-pipelines/win32/exec.ps1
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
$Arch = $env:VSCODE_ARCH
|
|
|
|
$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"
|
|
|
|
# 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"
|
|
|
|
exec { node build/azure-pipelines/common/copyArtifacts.js } "Copy Artifacts"
|