Skip to content

Commit

Permalink
Updated Chocolatey install scripts according to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Duco committed Dec 3, 2017
1 parent edc5561 commit 9bd0771
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions choco/armyknife.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<tags>armyknife tool tools command-line</tags>
<summary>A cross-platform console app with lots of handy tools.</summary>
<description>A cross-platform console app with lots of handy tools.</description>
<releaseNotes>See https://github.com/dukeofharen/armyknife/releases</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
15 changes: 4 additions & 11 deletions choco/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,15 @@
$ErrorActionPreference = 'Stop';
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$fileLocation = Join-Path $toolsDir 'armyknife_install.exe'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'exe'
file = $fileLocation

softwareName = 'armyknife*'

checksum = '[CHECKSUM]'
checksumType = 'sha256'

silentArgs = '/S'

silentArgs = "/S"
validExitCodes= @(0)
softwareName = 'armyknife*'
}

Install-ChocolateyPackage @packageArgs
Install-ChocolateyInstallPackage @packageArgs

0 comments on commit 9bd0771

Please sign in to comment.