You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
525B

  1. # This script takes care of packaging the build artifacts that will go in the
  2. # release zipfile
  3. $SRC_DIR = $PWD.Path
  4. $STAGE = [System.Guid]::NewGuid().ToString()
  5. Set-Location $ENV:Temp
  6. New-Item -Type Directory -Name $STAGE
  7. Set-Location $STAGE
  8. $ZIP = "$SRC_DIR\$($Env:CRATE_NAME)-$($Env:APPVEYOR_REPO_TAG_NAME)-$($Env:TARGET).zip"
  9. Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\zola.exe" '.\'
  10. 7z a "$ZIP" *
  11. Push-AppveyorArtifact "$ZIP"
  12. Remove-Item *.* -Force
  13. Set-Location ..
  14. Remove-Item $STAGE
  15. Set-Location $SRC_DIR