Skip to content

Commit

Permalink
Merge pull request #190 from gep13/UpdateChocolateyPackage
Browse files Browse the repository at this point in the history
Update chocolatey package
  • Loading branch information
laurentkempe committed Mar 2, 2019
2 parents 94afc84 + efb5938 commit 63e568b
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 16 deletions.
13 changes: 8 additions & 5 deletions ChocolateyPackage/GitDiffMargin/GitDiffMargin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<version>3.1.0</version>
<authors>Laurent Kempé</authors>
<owners>Laurent Kempé</owners>
<summary>Git Diff Margin displays live Git changes of the currently edited file on Visual Studio margin and scroll bar. Supports Visual Studio 2010 through Visual Studio 2015.</summary>
<summary>Git Diff Margin displays live Git changes of the currently edited file on Visual Studio margin and scroll bar. Supports Visual Studio 2012 through Visual Studio 2019 Preview.</summary>
<description>Git Diff Margin displays live Git changes of the currently edited file on Visual Studio margin and scroll bar.
* Supports Visual Studio 2010 through Visual Studio 2015

* Supports Visual Studio 2012 through Visual Studio 2019 Preview
* Quickly view all current file changes on
* Left margin
* Scroll Bars in map and bar mode with and without source overview
Expand All @@ -27,9 +27,12 @@
</description>
<releaseNotes></releaseNotes>
<projectUrl>https://github.com/laurentkempe/GitDiffMargin</projectUrl>
<tags>git visualstudio vs vs2010 vs2012 vs2013 vs2015 2010 2012 2013 2015</tags>
<tags>git visualstudio vs vs2010 vs2012 vs2013 vs2015 2010 2012 2013 2015 2017 2019</tags>
<licenseUrl>https://raw.githubusercontent.com/laurentkempe/GitDiffMargin/master/LICENSE.md</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://raw.githubusercontent.com/laurentkempe/GitDiffMargin/master/GitDiffMargin/Resources/GitDiffMargin-Thumb.png</iconUrl>
<dependencies>
<dependency id="chocolatey-visualstudio.extension" version="1.6.0" />
</dependencies>
</metadata>
</package>
</package>
19 changes: 19 additions & 0 deletions ChocolateyPackage/GitDiffMargin/tools/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2012-2016 Laurent Kempé

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
6 changes: 6 additions & 0 deletions ChocolateyPackage/GitDiffMargin/tools/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

This package is published by the GitDiffMArgin Project itself.
21 changes: 10 additions & 11 deletions ChocolateyPackage/GitDiffMargin/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
try {
$package = 'GitDiffMargin'
$ErrorActionPreference = 'Stop';

$params = @{
PackageName = $package;
VsixUrl = 'https://visualstudiogallery.msdn.microsoft.com/cf49cf30-2ca6-4ea0-b7cc-6a8e0dadc1a8/file/101267/12/GitDiffMargin.vsix';
}
$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$filePath = "$toolsPath\GitDiffMargin.vsix"

Install-ChocolateyVsixPackage @params
$package = 'GitDiffMargin'
$vsixUrl = "file://" + $filePath.Replace("\", "/")

Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
$params = @{
PackageName = $package;
VsixUrl = $vsixUrl;
}

Install-VisualStudioVsixExtension @params
14 changes: 14 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ steps:
targetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true

- task: CopyFiles@2
displayName: 'Copy Vsix to Chocolatey'
inputs:
contents: '**\?(*.vsix)'
targetFolder: '$(Build.Repository.LocalPath)/ChocolateyPackage/GitDiffMargin/tools/'
flattenFolders: true

- task: gep13.chocolatey-azuredevops.chocolatey-azuredevops.ChocolateyCommand@0
displayName: 'Chocolatey pack'
inputs:
packWorkingDirectory: '$(Build.Repository.LocalPath)/ChocolateyPackage/GitDiffMargin/'
packNuspecFileName: GitDiffMargin.nuspec
packVersion: '$(Build.BuildNumber)'

#- task: PowerShell@2
# displayName: 'Rename Build Artifacts'
# inputs:
Expand Down

0 comments on commit 63e568b

Please sign in to comment.