@@ -0,0 +1,26 @@
1+# This script takes care of packaging the build artifacts that will go in the
2+# release zipfile
3+
4+$SRC_DIR = $PWD.Path
5+$STAGE = [System.Guid]::NewGuid().ToString()
6+
7+Set-Location $ENV:Temp
8+New-Item -Type Directory -Name $STAGE
9+Set-Location $STAGE
10+
11+$ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
12+
13+Copy-Item "$SRC_DIR\target\release\bat.exe" '.\'
14+
15+# readme and license
16+Copy-Item $SRC_DIR\README.md '.\'
17+Copy-Item $SRC_DIR\LICENSE-MIT '.\'
18+Copy-Item $SRC_DIR\LICENSE-APACHE '.\'
19+
20+7z a "$ZIP" *
21+
22+Push-AppveyorArtifact "$ZIP"
23+
24+Set-Location ..
25+Remove-Item $STAGE -Force -Recurse
26+Set-Location $SRC_DIR