mirror of
https://github.com/microsoft/edit.git
synced 2025-07-07 13:25:16 +00:00
build: make the build pipeline produce the ZIP (#328)
Perhaps the next time we make a release, Windows Defender won't consider it a virus?
This commit is contained in:
parent
c9136dcc0b
commit
2cb9523d26
1 changed files with 16 additions and 0 deletions
|
@ -166,3 +166,19 @@ extends:
|
|||
search_root: "$(ob_createvpack_vpackdirectory)"
|
||||
use_testsign: false
|
||||
in_container: true
|
||||
|
||||
- ${{ each platform in parameters.buildPlatforms }}:
|
||||
- pwsh: |-
|
||||
$Dest = New-Item -Type Directory "_staging/${env:RELEASE_NAME}"
|
||||
Write-Host "Staging files from ${env:VPACK_ROOT} at $Dest"
|
||||
Get-ChildItem "${env:VPACK_ROOT}\*" -Include *.exe, *.pdb | Copy-Item -Destination $Dest -Verbose
|
||||
tar.exe -c -v --format=zip -f "$(ob_outputDirectory)\${env:RELEASE_NAME}.zip" -C _staging $env:RELEASE_NAME
|
||||
env:
|
||||
RELEASE_NAME: edit-$(EditVersion)-${{ replace(platform, 'pc-windows-msvc', 'windows') }}
|
||||
${{ if eq(platform, 'i686-pc-windows-msvc') }}:
|
||||
VPACK_ROOT: "$(ob_createvpack_vpackdirectory)/i386"
|
||||
${{ elseif eq(platform, 'x86_64-pc-windows-msvc') }}:
|
||||
VPACK_ROOT: "$(ob_createvpack_vpackdirectory)/amd64"
|
||||
${{ else }}: # aarch64-pc-windows-msvc
|
||||
VPACK_ROOT: "$(ob_createvpack_vpackdirectory)/arm64"
|
||||
displayName: Produce ${{platform}} release archive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue