on ea5e096 help sign in
bat/ci/before_deploy.ps1
28 lines 740 B history raw
1# This script takes care of packaging the build artifacts that will go in the
2# release zipfile
4$SRC_DIR = $PWD.Path
5$STAGE = [System.Guid]::NewGuid().ToString()
7Set-Location $ENV:Temp
8New-Item -Type Directory -Name $STAGE
9Set-Location $STAGE
11$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
13Copy-Item "$SRC_DIR\target\release\bat.exe" '.\'
14# TODO: disabled for now, see issue #372
15# Copy-Item $SRC_DIR\target\release\build\bat-*\out\_bat.ps1 '.\'
17# readme and license
18Copy-Item $SRC_DIR\README.md '.\'
19Copy-Item $SRC_DIR\LICENSE-MIT '.\'
20Copy-Item $SRC_DIR\LICENSE-APACHE '.\'
227z a "$ZIP" *
24Push-AppveyorArtifact "$ZIP"
26Set-Location ..
27Remove-Item $STAGE -Force -Recurse
28Set-Location $SRC_DIR