Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Fix zip name and link for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérémie Bertrand committed Jan 25, 2015
1 parent 4c33680 commit 24d3655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ after_build:
$version = $env:appveyor_build_version
#If ($env:appveyor_repo_tag -eq $True){$version = $env:appveyor_repo_tag_name}
$tag = $version
If ($env:appveyor_repo_tag -eq $True){$tag = $env:appveyor_repo_tag_name}
# build nupkg
Expand All @@ -37,15 +39,15 @@ after_build:
move tools\chocolatey\chocolateyInstall.ps1 chocoTemp\tools\chocolateyInstall.ps1
(gc chocoTemp\tools\chocolateyInstall.ps1).replace('{{version}}',$version)|sc chocoTemp\tools\chocolateyInstall.ps1
(gc chocoTemp\tools\chocolateyInstall.ps1).replace('{{version}}',$version).replace('{{tag}}',$tag)|sc chocoTemp\tools\chocolateyInstall.ps1
nuget pack chocoTemp\pretzel.nuspec -OutputDirectory artifacts -Version $version -NoPackageAnalysis
# create zip
7z a pretzel.$version.zip $env:appveyor_build_folder\src\Pretzel\bin\Release\Pretzel.exe*
7z a Pretzel.$version.zip $env:appveyor_build_folder\src\Pretzel\bin\Release\Pretzel.exe*
7z a pretzel.$version.zip ReleaseNotes.md
7z a Pretzel.$version.zip ReleaseNotes.md
test_script:
- cinst opencover -source https://nuget.org/api/v2/
Expand Down
2 changes: 1 addition & 1 deletion tools/chocolatey/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ try {
}

$packageName = 'Pretzel'
$url = 'https://github.com/Code52/Pretzel/releases/download/{{version}}/Pretzel.{{version}}.zip'
$url = 'https://github.com/Code52/Pretzel/releases/download/{{tag}}/Pretzel.{{version}}.zip'

Install-ChocolateyZipPackage "$packageName" "$url" "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

0 comments on commit 24d3655

Please sign in to comment.