Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
Exclude files from published package
Browse files Browse the repository at this point in the history
Resolves #144
  • Loading branch information
krokofant authored and JanDeDobbeleer committed May 2, 2019
1 parent 9c52bdd commit 819628a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ deploy_script:
$uploadUri = $result | Select-Object -ExpandProperty upload_url
$uploadUri = $uploadUri -creplace '\{\?name,label\}' #, '?name=oh-my-posh.zip'
$uploadUri = $uploadUri + '?name=oh-my-posh.zip'
$distFolder = Join-Path $env:APPVEYOR_BUILD_FOLDER dist
mkdir $distFolder | Out-Null
$excludedFiles = @(".*", "Build", "appveyor.yml", "TestsResults.xml", "dist")
$distFiles = Get-ChildItem $env:APPVEYOR_BUILD_FOLDER -Exclude $excludedFiles
$distFiles | Copy-Item -Destination $distFolder -Recurse
Add-Type -assembly "system.io.compression.filesystem"
[io.compression.zipfile]::CreateFromDirectory($env:APPVEYOR_BUILD_FOLDER, "$HOME\Desktop\oh-my-posh.zip")
[io.compression.zipfile]::CreateFromDirectory($distFolder, "$HOME\Desktop\oh-my-posh.zip")
$uploadParams = @{
Uri = $uploadUri
Method = 'POST'
Expand Down

0 comments on commit 819628a

Please sign in to comment.