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:
Dustin L. Howett 2025-05-27 16:11:48 -05:00 committed by GitHub
parent c9136dcc0b
commit 2cb9523d26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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