From 1c90502a3c4f735a7546a1147b100946f1a5af01 Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Thu, 25 Jun 2020 02:10:48 -0700 Subject: Add CI courtesy of trust & cross --- ci/before_deploy.ps1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ci/before_deploy.ps1 (limited to 'ci/before_deploy.ps1') diff --git a/ci/before_deploy.ps1 b/ci/before_deploy.ps1 new file mode 100644 index 0000000..5bc9388 --- /dev/null +++ b/ci/before_deploy.ps1 @@ -0,0 +1,22 @@ +# This script takes care of packaging the build artifacts that will go in the +# release zipfile + +$SRC_DIR = $pwd.Path +$STAGE = [System.Guid]::NewGuid().ToString() + +Set-Location $env:TEMP +New-Item -Type Directory -Name $STAGE +Set-Location $STAGE + +$ZIP = "$SRC_DIR\$($env:CRATE_NAME)-$($env:APPVEYOR_REPO_TAG_NAME)-$($env:TARGET).zip" + +Copy-Item "$SRC_DIR\target\$($env:TARGET)\release\$($env:CRATE_NAME).exe" '.\' + +7z a "$ZIP" * + +Push-AppveyorArtifact "$ZIP" + +Remove-Item *.* -Force +Set-Location .. +Remove-Item $STAGE +Set-Location $SRC_DIR -- cgit v1.2.3