Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bdukes/Chocolatey-Packages
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: imagemagick.tool-7.0.11.5
Choose a base ref
...
head repository: bdukes/Chocolatey-Packages
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 1,983 additions and 360 deletions.
  1. +2 −1 .gitignore
  2. +2 −0 README.md
  3. +47 −0 _scripts/Get-GitHubRelease.psm1
  4. +6 −4 automatic/DefaultProgramsEditor/update.ps1
  5. +28 −0 automatic/difftastic/difftastic.nuspec
  6. +12 −0 automatic/difftastic/tools/chocolateyinstall.ps1
  7. +29 −0 automatic/difftastic/update.ps1
  8. +17 −16 automatic/elm-platform/update.ps1
  9. +1 −1 automatic/hg/hg.nuspec
  10. +4 −4 automatic/hg/tools/chocolateyInstall.ps1
  11. +4 −4 automatic/imagemagick - legacy/imagemagick - legacy.nuspec
  12. +4 −4 automatic/imagemagick - legacy/update.ps1
  13. +4 −4 automatic/imagemagick.app - legacy/imagemagick.app - legacy.nuspec
  14. +4 −4 automatic/imagemagick.app - legacy/legal/VERIFICATION.txt
  15. +10 −14 automatic/imagemagick.app - legacy/tools/chocolateyInstall.ps1
  16. +17 −0 automatic/imagemagick.app - legacy/tools/chocolateyUninstall.ps1
  17. +2 −2 automatic/imagemagick.app - legacy/update.ps1
  18. +8 −6 automatic/imagemagick.app/imagemagick.app.nuspec
  19. +4 −4 automatic/imagemagick.app/legal/VERIFICATION.txt
  20. +21 −14 automatic/imagemagick.app/tools/chocolateyInstall.ps1
  21. +17 −0 automatic/imagemagick.app/tools/chocolateyUninstall.ps1
  22. +9 −9 automatic/imagemagick.app/update.ps1
  23. +6 −5 automatic/imagemagick.tool - legacy/imagemagick.tool - legacy.nuspec
  24. +107 −0 automatic/imagemagick.tool - legacy/legal/LICENSE.txt
  25. +20 −0 automatic/imagemagick.tool - legacy/legal/VERIFICATION.txt
  26. +7 −18 automatic/imagemagick.tool - legacy/tools/chocolateyInstall.ps1
  27. +27 −22 automatic/imagemagick.tool - legacy/update.ps1
  28. +6 −5 automatic/imagemagick.tool/imagemagick.tool.nuspec
  29. +107 −0 automatic/imagemagick.tool/legal/LICENSE.txt
  30. +20 −0 automatic/imagemagick.tool/legal/VERIFICATION.txt
  31. +7 −18 automatic/imagemagick.tool/tools/chocolateyInstall.ps1
  32. +27 −21 automatic/imagemagick.tool/update.ps1
  33. +11 −5 automatic/imagemagick/imagemagick.nuspec
  34. +6 −4 automatic/imagemagick/update.ps1
  35. +0 −31 automatic/lastpass-for-applications/lastpass-for-applications.nuspec
  36. +0 −14 automatic/lastpass-for-applications/tools/chocolateyInstall.ps1
  37. +0 −36 automatic/lastpass-for-applications/update.ps1
  38. +6 −6 automatic/linqpad/linqpad.nuspec
  39. +2 −2 automatic/linqpad/update.ps1
  40. +1 −1 automatic/linqpad5.AnyCPU.install/linqpad5.AnyCPU.install.nuspec
  41. +1 −1 automatic/linqpad5.AnyCPU.install/tools/chocolateyInstall.ps1
  42. +2 −2 automatic/linqpad5.AnyCPU.portable - beta/linqpad5.AnyCPU.portable - beta.nuspec
  43. +1 −1 automatic/linqpad5.AnyCPU.portable - beta/tools/chocolateyInstall.ps1
  44. +2 −2 automatic/linqpad5.AnyCPU.portable/linqpad5.AnyCPU.portable.nuspec
  45. +1 −1 automatic/linqpad5.AnyCPU.portable/tools/chocolateyInstall.ps1
  46. +2 −2 automatic/linqpad5.install/linqpad5.install.nuspec
  47. +1 −1 automatic/linqpad5.install/tools/chocolateyInstall.ps1
  48. +2 −2 automatic/linqpad5.portable - beta/linqpad5.portable - beta.nuspec
  49. +1 −1 automatic/linqpad5.portable - beta/tools/chocolateyInstall.ps1
  50. +2 −2 automatic/linqpad5.portable/linqpad5.portable.nuspec
  51. +1 −1 automatic/linqpad5.portable/tools/chocolateyInstall.ps1
  52. +3 −3 automatic/linqpad5/linqpad5.nuspec
  53. +3 −3 automatic/linqpad6.install/linqpad6.install.nuspec
  54. +1 −1 automatic/linqpad6.install/tools/chocolateyInstall.ps1
  55. +10 −8 automatic/linqpad6.install/update.ps1
  56. +3 −3 automatic/linqpad6.portable - beta/linqpad6.portable - beta.nuspec
  57. +1 −1 automatic/linqpad6.portable - beta/tools/chocolateyInstall.ps1
  58. +5 −6 automatic/linqpad6.portable - beta/update.ps1
  59. +3 −3 automatic/linqpad6.portable/linqpad6.portable.nuspec
  60. +1 −1 automatic/linqpad6.portable/tools/chocolateyInstall.ps1
  61. +10 −8 automatic/linqpad6.portable/update.ps1
  62. +4 −4 automatic/linqpad6/linqpad6.nuspec
  63. +9 −8 automatic/linqpad6/update.ps1
  64. +40 −0 automatic/linqpad7.install/linqpad7.install.nuspec
  65. +157 −0 automatic/linqpad7.install/tools/Uninstall-ChocolateyPath.ps1
  66. +20 −0 automatic/linqpad7.install/tools/chocolateyInstall.ps1
  67. +7 −0 automatic/linqpad7.install/tools/chocolateyUninstall.ps1
  68. +24 −0 automatic/linqpad7.install/update.ps1
  69. +36 −0 automatic/linqpad7.portable - beta/linqpad7.portable - beta.nuspec
  70. +19 −0 automatic/linqpad7.portable - beta/tools/chocolateyInstall.ps1
  71. +31 −0 automatic/linqpad7.portable - beta/update.ps1
  72. +39 −0 automatic/linqpad7.portable/linqpad7.portable.nuspec
  73. +19 −0 automatic/linqpad7.portable/tools/chocolateyInstall.ps1
  74. +24 −0 automatic/linqpad7.portable/update.ps1
  75. +40 −0 automatic/linqpad7/linqpad7.nuspec
  76. +1 −0 automatic/linqpad7/tools/chocolateyInstall.ps1
  77. +24 −0 automatic/linqpad7/update.ps1
  78. +40 −0 automatic/linqpad8.install/linqpad8.install.nuspec
  79. +157 −0 automatic/linqpad8.install/tools/Uninstall-ChocolateyPath.ps1
  80. +20 −0 automatic/linqpad8.install/tools/chocolateyInstall.ps1
  81. +7 −0 automatic/linqpad8.install/tools/chocolateyUninstall.ps1
  82. +24 −0 automatic/linqpad8.install/update.ps1
  83. +36 −0 automatic/linqpad8.portable - beta/linqpad8.portable - beta.nuspec
  84. +19 −0 automatic/linqpad8.portable - beta/tools/chocolateyInstall.ps1
  85. +31 −0 automatic/linqpad8.portable - beta/update.ps1
  86. +39 −0 automatic/linqpad8.portable/linqpad8.portable.nuspec
  87. +19 −0 automatic/linqpad8.portable/tools/chocolateyInstall.ps1
  88. +24 −0 automatic/linqpad8.portable/update.ps1
  89. +40 −0 automatic/linqpad8/linqpad8.nuspec
  90. +1 −0 automatic/linqpad8/tools/chocolateyInstall.ps1
  91. +24 −0 automatic/linqpad8/update.ps1
  92. +27 −0 automatic/mob/mob.nuspec
  93. +19 −0 automatic/mob/tools/chocolateyInstall.ps1
  94. +29 −0 automatic/mob/update.ps1
  95. +28 −0 automatic/rustdesk.install/rustdesk.install.nuspec
  96. +6 −0 automatic/rustdesk.install/tools/chocolateyBeforeModify.ps1
  97. +6 −0 automatic/rustdesk.install/tools/chocolateyUninstall.ps1
  98. +24 −0 automatic/rustdesk.install/tools/chocolateyinstall.ps1
  99. +30 −0 automatic/rustdesk.install/update.ps1
  100. +28 −0 automatic/rustdesk.portable/rustdesk.portable.nuspec
  101. +13 −0 automatic/rustdesk.portable/tools/chocolateyinstall.ps1
  102. +29 −0 automatic/rustdesk.portable/update.ps1
  103. +31 −0 automatic/rustdesk/rustdesk.nuspec
  104. +1 −0 automatic/rustdesk/tools/chocolateyinstall.ps1
  105. +27 −0 automatic/rustdesk/update.ps1
  106. +3 −3 automatic/svn/update.ps1
  107. +2 −5 azure-pipelines.yml
  108. BIN icons/linqpad7.png
  109. +29 −0 icons/mob.svg
  110. +2 −2 manual/linqpad4.AnyCPU.portable/linqpad4.AnyCPU.portable.nuspec
  111. +2 −2 manual/linqpad4.install/linqpad4.install.nuspec
  112. +2 −2 manual/linqpad4.portable/linqpad4.portable.nuspec
  113. +2 −2 manual/linqpad4/linqpad4.nuspec
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -28,4 +28,5 @@ gist.md
update_info.xml
Update-AUPackages.md
Update-History.md
*.exe
*.exe
*.zip
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Chocolatey Packages

[![Build Status](https://dev.azure.com/dukesb11/Chocolatey-Packages/_apis/build/status/bdukes.Chocolatey-Packages)](https://dev.azure.com/dukesb11/Chocolatey-Packages/_build/latest?definitionId=1)
[![Update status](https://img.shields.io/badge/Gist-Update%20Status-informational?logo=github)](https://gist.github.com/bdukes/fd3d636b9b4617772f9b99ceb88838fa)
[![chocolatey/bdukes](https://img.shields.io/badge/Chocolatey-bdukes-blue?logo=chocolatey)](https://chocolatey.org/profiles/bdukes)

This contains Chocolatey packages, both manually and automatically maintained.

47 changes: 47 additions & 0 deletions _scripts/Get-GitHubRelease.psm1
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# from https://github.com/chocolatey-community/chocolatey-packages/blob/8beeb9ba52ae44ddd6084b23d94897f0f87546f6/scripts/Get-GitHubRelease.ps1
function Get-GitHubRelease {
<#
.SYNOPSIS
Gets the latest or a specific release of a given GitHub repository
.EXAMPLE
Get-GitHubRelease cloudflare cloudflared
#>
[CmdletBinding()]
param(
# Repository owner
[Parameter(Mandatory, Position = 0)]
[string]$Owner,

# Repository name
[Parameter(Mandatory, Position = 1)]
[string]$Name,

# The Name of the tag to get the relase for. Will default to the latest release.
[string]$TagName,

# GitHub token, used to reduce rate-limiting or access private repositories (needs repo scope)
[string]$Token = "$($env:github_api_key)"
)
end {
$apiUrl = "https://api.github.com/repos/$Owner/$Name/releases/latest"

if ($TagName) {
$apiUrl = "https://api.github.com/repos/$Owner/$Name/releases/tags/$TagName"
}

$Request = @{
Uri = $apiUrl
}

if (-not [string]::IsNullOrEmpty($Token)) {
$Request.Headers = @{
Accept = 'application/vnd.github+json'
Authorization = "Bearer $($Token)"
}
}

Invoke-RestMethod @Request
}
}

Export-ModuleMember -Function Get-GitHubRelease;
10 changes: 6 additions & 4 deletions automatic/DefaultProgramsEditor/update.ps1
Original file line number Diff line number Diff line change
@@ -9,13 +9,15 @@ function global:au_SearchReplace {
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri 'https://defaultprogramseditor.com/'
$download_page = Invoke-WebRequest -Uri 'https://defaultprogramseditor.com/' -UseBasicParsing;

$linkText = $download_page.links | ? innerText -match 'Version (?:\d+\.)+\d+' | select -First 1 -expand innerText
$versionMatch = $linkText | select-string -Pattern '(?:\d+\.)+\d+'
$versionMatch = $download_page | select-string -Pattern '(?:\d+\.)+\d+'
$version = $versionMatch.Matches[0].Value

return @{ URL32 = 'https://defaultprogramseditor.com/download'; Version = $version }
return @{
URL32 = 'https://defaultprogramseditor.com/download';
Version = $version;
}
}

update
28 changes: 28 additions & 0 deletions automatic/difftastic/difftastic.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- 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>difftastic</id>
<version>0.62.0</version>
<packageSourceUrl>https://github.com/bdukes/Chocolatey-Packages</packageSourceUrl>
<owners>Brian Dukes</owners>
<title>Difftastic</title>
<authors>Wilfred Hughes</authors>
<projectUrl>https://difftastic.wilfred.me.uk/</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/Wilfred/difftastic@0.35.0/img/logo.png</iconUrl>
<copyright>Copyright © 2021-2022 Wilfred Hughes</copyright>
<licenseUrl>https://github.com/Wilfred/difftastic/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<projectSourceUrl>https://github.com/Wilfred/difftastic</projectSourceUrl>
<docsUrl>https://difftastic.wilfred.me.uk/</docsUrl>
<mailingListUrl>https://github.com/Wilfred/difftastic/issues</mailingListUrl>
<bugTrackerUrl>https://github.com/Wilfred/difftastic/issues</bugTrackerUrl>
<tags>difftastic portable diff syntax</tags>
<summary>A structural diff that understands syntax.</summary>
<description>Difftastic is a structural diff tool that compares files based on their syntax.</description>
<releaseNotes>[https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md](https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md)</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
12 changes: 12 additions & 0 deletions automatic/difftastic/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$ErrorActionPreference = 'Stop';
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition;

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
url = 'https://github.com/Wilfred/difftastic/releases/download/0.62.0/difft-x86_64-pc-windows-msvc.zip'
checksum = '8c4df8d075018102038b94a57f9b7f7b21a365538d4ee4cfe7eb541ac7f8bd33'
checksumType = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs;
29 changes: 29 additions & 0 deletions automatic/difftastic/update.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Import-Module au;
Import-Module '../../_scripts/Get-GitHubRelease.psm1';

$owner = 'Wilfred';
$repository = 'difftastic';

function global:au_SearchReplace {
@{
'tools\chocolateyInstall.ps1' = @{
"(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"
"(^\s*checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType64)'"
}
}
}

function global:au_GetLatest {
$release = Get-GitHubRelease -Owner:$owner -Name:$repository;
[regex]$re = '/Wilfred/difftastic/releases/download/(\d+(?:\.\d+)+)/difft-x86_64-pc-windows-msvc\.zip';
$url = $release.assets.browser_download_url | Where-Object { $_ -match $re } | Select-Object -First 1;
$version = $matches[1];

return @{
URL64 = $url;
Version = $version;
};
}

update
33 changes: 17 additions & 16 deletions automatic/elm-platform/update.ps1
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
import-module au
Import-Module au;
Import-Module '../../_scripts/Get-GitHubRelease.psm1';

$owner = 'elm';
$repository = 'compiler';

function global:au_SearchReplace {
@{
'tools\chocolateyInstall.ps1' = @{
"(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL)'"
"(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(^\s*checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
"(^\s*url\s*=\s*)('.*')" = "`$1'$($Latest.URL)'"
"(^\s*checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(^\s*checksumType\s*=\s*)('.*')" = "`$1'$($Latest.ChecksumType32)'"
}
}
}
}

function global:au_GetLatest {
$download_url = [System.Uri]'https://github.com/elm/compiler/releases/latest'
$download_page = Invoke-WebRequest -Uri $download_url -UseBasicParsing

[regex]$re = '/elm/compiler/releases/download/(\d+(?:\.\d+)+)\/installer-for-windows\.exe'
if ($download_page.Content -match $re) {
$url = $matches[0];
$version = $matches[1];
$uri = New-Object System.Uri @($download_url, $url)
return @{ URL = $uri.AbsoluteUri; Version = $version };
}
$release = Get-GitHubRelease -Owner:$owner -Name:$repository;
[regex]$re = '/elm/compiler/releases/download/(\d+(?:\.\d+)+)\/installer-for-windows\.exe';
$url = $release.assets.browser_download_url | Where-Object { $_ -match $re } | Select-Object -First 1;
$version = $matches[1];

return @{};
return @{
URL = $url;
Version = $version
};
}

update
2 changes: 1 addition & 1 deletion automatic/hg/hg.nuspec
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<metadata>
<id>hg</id>
<title>Mercurial</title>
<version>5.7.1</version>
<version>6.3.1</version>
<authors>Matt Mackall</authors>
<owners>Brian Dukes</owners>
<summary>Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.</summary>
8 changes: 4 additions & 4 deletions automatic/hg/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@
$packageArgs = @{
packageName = 'hg'
installerType = 'exe'
url = 'https://www.mercurial-scm.org/release/windows/Mercurial-5.7.1-x86.exe'
url64 = 'https://www.mercurial-scm.org/release/windows/Mercurial-5.7.1-x64.exe'
checksum = 'd9ec9c5c872ecd13dc43aa3b7ca065118b2bbb21cbacdda1dc0e1fc7bfab8712'
url = 'https://www.mercurial-scm.org/release/windows/Mercurial-6.3.1-x86.exe'
url64 = 'https://www.mercurial-scm.org/release/windows/Mercurial-6.3.1-x64.exe'
checksum = 'e2bec8a6b9bbe97c80fc16994920d25503cd8fcd53191f087f99d30fb1e354fc'
checksumType = 'sha256'
checksum64 = 'f5e06aa96e468cc61948f1ce16b8f650d50d8b8059e8e0c4b93ea7a17258f764'
checksum64 = 'be8bbadc156ad7f3bc46d7787d1eb681231cbe34c04c473becc2f9a69d2a09ee'
checksumType64 = 'sha256'
silentArgs = '/VERYSILENT'
validExitCodes = @(0, 3010)
8 changes: 4 additions & 4 deletions automatic/imagemagick - legacy/imagemagick - legacy.nuspec
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<metadata>
<id>imagemagick</id>
<title>ImageMagick</title>
<version>6.9.12.5</version>
<version>6.9.13.2100</version>
<authors>ImageMagick Studio LLC</authors>
<owners>Brian Dukes</owners>
<summary><![CDATA[ImageMagick® is a software suite to create, edit, compose, or convert bitmap images]]></summary>
@@ -22,11 +22,11 @@ You can add -PackageParameters InstallDevelopmentHeaders=true to the choco insta
<packageSourceUrl>https://github.com/bdukes/Chocolatey-Packages</packageSourceUrl>
<releaseNotes>https://legacy.imagemagick.org/script/changelog.php</releaseNotes>
<docsUrl>https://legacy.imagemagick.org/script/command-line-processing.php</docsUrl>
<mailingListUrl>https://imagemagick.org/discourse-server/</mailingListUrl>
<bugTrackerUrl>https://imagemagick.org/discourse-server/viewforum.php?f=3</bugTrackerUrl>
<mailingListUrl>https://github.com/ImageMagick/ImageMagick6/discussions</mailingListUrl>
<bugTrackerUrl>https://github.com/ImageMagick/ImageMagick6/issues</bugTrackerUrl>
<projectSourceUrl>https://github.com/ImageMagick/ImageMagick6</projectSourceUrl>
<dependencies>
<dependency id="imagemagick.app" version="[6.9.12.5]" />
<dependency id="imagemagick.app" version="[6.9.13.2100]" />
</dependencies>
</metadata>
<files>
8 changes: 4 additions & 4 deletions automatic/imagemagick - legacy/update.ps1
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ function global:au_SearchReplace {
'imagemagick - legacy.nuspec' = @{
'(^\s*<dependency id="imagemagick.app" version=")(\[.*\])(" />)' = "`$1[$($Latest.Version)]`$3"
}
}
}
}

function global:au_GetLatest {
@@ -20,9 +20,9 @@ function global:au_GetLatest {
$version = $versionMatch.Matches[0].Groups[1].Value -replace '-', '.'

return @{
URL32 = $url32
URL64 = $url64
Version = $version
URL32 = $url32
URL64 = $url64
Version = $version + '00'
PackageName = 'imagemagick'
}
}
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
<metadata>
<id>imagemagick.app</id>
<title>ImageMagick (Install)</title>
<version>6.9.12.5</version>
<version>6.9.13.2100</version>
<authors>ImageMagick Studio LLC</authors>
<owners>Brian Dukes</owners>
<summary><![CDATA[ImageMagick® is a software suite to create, edit, compose, or convert bitmap images]]></summary>
@@ -24,11 +24,11 @@ You can add -PackageParameters NoDesktop=true to the choco install command in or
<packageSourceUrl>https://github.com/bdukes/Chocolatey-Packages</packageSourceUrl>
<releaseNotes>https://legacy.imagemagick.org/script/changelog.php</releaseNotes>
<docsUrl>https://legacy.imagemagick.org/script/command-line-processing.php</docsUrl>
<mailingListUrl>https://imagemagick.org/discourse-server/</mailingListUrl>
<bugTrackerUrl>https://imagemagick.org/discourse-server/viewforum.php?f=3</bugTrackerUrl>
<mailingListUrl>https://github.com/ImageMagick/ImageMagick6/discussions</mailingListUrl>
<bugTrackerUrl>https://github.com/ImageMagick/ImageMagick6/issues</bugTrackerUrl>
<projectSourceUrl>https://github.com/ImageMagick/ImageMagick6</projectSourceUrl>
<dependencies>
<dependency id="vcredist2010" version="10.0.40219.1" />
<dependency id="vcredist140" version="14.34.31938" />
</dependencies>
</metadata>
<files>
8 changes: 4 additions & 4 deletions automatic/imagemagick.app - legacy/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -7,14 +7,14 @@ Package can be verified like this:

1. Go to

x32: https://download.imagemagick.org/ImageMagick/download/binaries/ImageMagick-6.9.12-5-Q16-x86-dll.exe
x64: https://download.imagemagick.org/ImageMagick/download/binaries/ImageMagick-6.9.12-5-Q16-x64-dll.exe
x32: https://imagemagick.org/archive//binaries/ImageMagick-6.9.13-21-Q16-x86-dll.exe
x64: https://imagemagick.org/archive//binaries/ImageMagick-6.9.13-21-Q16-x64-dll.exe

to download the installer.

2. You can use one of the following methods to obtain the SHA256 checksum:
- Use powershell function 'Get-FileHash'
- Use Chocolatey utility 'checksum.exe'

checksum32: 2607F809378FDB1229388800A6401E5380CF1AE37D0D1D89E832A269F90B0048
checksum64: EF08A23C8FA499E4D03289EF3DA8D325B8288A95944D9D0A6B384F9176272A41
checksum32: 2B752B420AF73FE29EB9152596AA280327AC1DD7A189436C649BE2247B628498
checksum64: A838AE91210BB8FA45ADD8765E3E7D69B45D47169C668BDA5807E6931883E451
24 changes: 10 additions & 14 deletions automatic/imagemagick.app - legacy/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -26,20 +26,16 @@ if ($env:chocolateyPackageParameters) {
}
}

try {
# Uninstall older version of imagemagick, otherwise the installation won’t be silent.
$regPath = 'HKLM:\SOFTWARE\ImageMagick\Current';
if ($env:chocolateyForceX86) {
$regPath = 'HKLM:\SOFTWARE\Wow6432Node\ImageMagick\Current';
}
if (Test-Path $regPath) {
$uninstallPath = (Get-ItemProperty -Path $regPath).BinPath;
$uninstallFilePath = "$uninstallPath\unins000.exe";
Uninstall-ChocolateyPackage $packageArgs.packageName $packageArgs.installerType $packageArgs.silentArgs $uninstallFilePath;
}
} catch {
Write-Warning "$packageName uninstallation failed, with message $($_.Exception.Message)";
Write-Warning "$packageName installation may not be silent";
#Uninstall old version if present
$UninstallKey = $(Get-UninstallRegistryKey -softwareName $packageArgs.softwareName).UninstallString

if ($UninstallKey.count -eq 1) {
# foreach ($key in $UninstallKey){
Write-Host "Uninstalling previous version is required for silent upgrade"
Uninstall-ChocolateyPackage $packageArgs.packageName $packageArgs.installerType $packageArgs.silentArgs $UninstallKey
# }
}elseif ($UninstallKey.count -gt 1) {
throw "Uninstallation of the old version was aborted because they are too much uninstall entries. List of entries : $UninstallKey"
}

Write-Verbose "Installing with arguments: $($packageArgs.silentArgs)";
17 changes: 17 additions & 0 deletions automatic/imagemagick.app - legacy/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$ErrorActionPreference = 'Stop';

$packageArgs = @{
packageName = $Env:ChocolateyPackageName
installerType = 'exe'
silentArgs = '/VERYSILENT'
validExitCodes = @(0)
softwareName = 'ImageMagick*'
}

$UninstallKey = $(Get-UninstallRegistryKey -softwareName $packageArgs.softwareName).UninstallString

if ($UninstallKey.count -eq 1) {
Uninstall-ChocolateyPackage $packageArgs.packageName $packageArgs.installerType $packageArgs.silentArgs $UninstallKey
}elseif ($UninstallKey.count -gt 1) {
throw "Uninstallation was aborted because they are too much uninstall entries. List of entries : $UninstallKey"
}
4 changes: 2 additions & 2 deletions automatic/imagemagick.app - legacy/update.ps1
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ function global:au_SearchReplace {
"(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
"(?i)(checksum64:).*" = "`${1} $($Latest.Checksum64)"
}
}
}
}

function global:au_BeforeUpdate {
@@ -29,7 +29,7 @@ function global:au_GetLatest {
return @{
URL32 = $url32
URL64 = $url64
Version = $version
Version = $version + '00'
PackageName = 'imagemagick.app'
}
}
Loading