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.

24 lines
574B

  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. # TODO Update this to package the right artifacts
  10. Copy-Item "$SRC_DIR\target\$($Env:TARGET)\release\tantivy" '.\'
  11. 7z a "$ZIP" *
  12. Push-AppveyorArtifact "$ZIP"
  13. Remove-Item *.* -Force
  14. Set-Location ..
  15. Remove-Item $STAGE
  16. Set-Location $SRC_DIR