Skip to content

Commit

Permalink
Moved to a portable package for chocolatey
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed Jun 10, 2016
1 parent 95c27da commit 13d6db7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions appveyor.yml
Expand Up @@ -3,6 +3,7 @@
branches:
only:
- master
skip_tags: true
version: 0.5.{build}
configuration: Release
environment:
Expand Down Expand Up @@ -86,28 +87,29 @@
Write-Host "Setting version number: $versionNumber"
(Get-Content '.\ober.nuspec' -Raw).Replace('%version%', $versionNumber) | Out-File -Encoding 'UTF8' '.\ober.nuspec'
(Get-Content '.\ober.portable.nuspec' -Raw).Replace('%version%', $versionNumber) | Out-File -Encoding 'UTF8' '.\ober.portable.nuspec'
Write-Host 'Creating package'
cpack
Write-Host 'Uploading artifact'
Push-AppveyorArtifact ".\ober.$versionNumber.nupkg"
Push-AppveyorArtifact ".\ober.portable.$versionNumber.nupkg"
choco apiKey -k $ch_key -source https://chocolatey.org/
Write-Host 'Pushing package to chocolatey'
choco push "ober.$versionNumber.nupkg"
choco push "ober.portable.$versionNumber.nupkg"
# default build config, no deployment, no artifacts
-
branches:
except:
- master
skip_tags: true
version: 1.0.{build}
configuration: Release
before_build:
Expand Down
2 changes: 1 addition & 1 deletion chocolatey/ober.nuspec → chocolatey/ober.portable.nuspec
Expand Up @@ -2,7 +2,7 @@
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>ober</id>
<id>ober.portable</id>
<title>ober (Portable)</title>
<version>%version%</version>
<authors>JanJoris</authors>
Expand Down

0 comments on commit 13d6db7

Please sign in to comment.