Skip to content

Commit

Permalink
AU: 5 updated - keepass-classic vscode vscode.install vscode-insiders…
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey Community committed Feb 1, 2024
1 parent 8ac37a2 commit 5f9796a
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions automatic/keepass-classic/keepass-classic.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>keepass-classic</id>
<version>1.41</version>
<version>1.42</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-packages/tree/master/automatic/keepass-classic</packageSourceUrl>
<owners>chocolatey-community</owners>
<title>KeePass Classic Password Safe</title>
Expand All @@ -13,7 +13,7 @@
<copyright>Copyright © 2003-2017 Dominik Reichl</copyright>
<licenseUrl>http://keepass.info/help/v1/license.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.41/</projectSourceUrl>
<projectSourceUrl>https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.42/</projectSourceUrl>
<docsUrl>http://keepass.info/help/base/index.html</docsUrl>
<mailingListUrl>https://sourceforge.net/p/keepass/discussion/?source=navbar</mailingListUrl>
<bugTrackerUrl>https://sourceforge.net/projects/keepass/support</bugTrackerUrl>
Expand Down Expand Up @@ -53,7 +53,7 @@ For example: `--params '"/DisableFileAssoc /DesktopIcon /QuickLaunchIcon"'`
- Looking for the source code of KeePass classic? Click the project source url and look for the file ending with `-Src.zip`
]]></description>
<releaseNotes>http://keepass.info/news/n230102_1.41.html</releaseNotes>
<releaseNotes>http://keepass.info/news/n240201_1.42.html</releaseNotes>
<dependencies>
<dependency id="chocolatey-core.extension" version="1.3.3" />
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions automatic/keepass-classic/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ The embedded software have been downloaded from the listed download
location on <http://keepass.info/download.html>
and can be verified by doing the following:

1. Download the following <https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.41/KeePass-1.41-Setup.exe/download>
1. Download the following <https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.42/KeePass-1.42-Setup.exe/download>
2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
- Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

checksum type: sha256
checksum: D5CF432AC514CB5239A879A22CC3E0EEF6CBC089AA40146A6A1E38C090AC79BA
checksum: 49CC3AD7DA8DE1FCA9F81744B703B528F398E75002B75F84E1BD8CC29D749E99

The file 'LICENSE.txt' has been obtained from <https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>
The keepass 1.x license is listed on <https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.41/KeePass-1.41-Setup.exe/download>
The keepass 1.x license is listed on <https://sourceforge.net/projects/keepass/files/KeePass%201.x/1.42/KeePass-1.42-Setup.exe/download>
2 changes: 1 addition & 1 deletion automatic/keepass-classic/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$pp = Get-PackageParameters

$filePath = "$toolsPath\KeePass-1.41-Setup.exe"
$filePath = "$toolsPath\KeePass-1.42-Setup.exe"
$packageArgs = @{
packageName = 'keepass-classic'
fileType = 'exe'
Expand Down
12 changes: 6 additions & 6 deletions automatic/keepass-classic/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function global:au_BeforeUpdate {
$Latest.ChecksumType32 = 'sha256'
$filePath = "$PSScriptRoot\tools\$($Latest.FileName32)"
Get-WebFile -Url $Latest.URL32 -FileName $filePath
$Latest.Checksum32 = Get-FileHash $filePath -Algorithm $Latest.ChecksumType32 | % Hash
$Latest.Checksum32 = Get-FileHash $filePath -Algorithm $Latest.ChecksumType32 | ForEach-Object Hash
}

function global:au_SearchReplace {
Expand All @@ -38,21 +38,21 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$re = 'KeePass.*1\.x\/.*\.exe\/download$'
$url32 = $download_page.Links | ? href -match $re | select -first 1 -expand href
$fileName = $url32 -split '/' | select -last 1 -skip 1
$url32 = $download_page.Links | Where-Object href -match $re | Select-Object -first 1 -expand href
$fileName = $url32 -split '/' | Select-Object -last 1 -skip 1
$index = $url32.IndexOf($fileName)
$sourceUrl = $url32.Substring(0, $index)

$verRe = '[-]'
$version32 = $url32 -split "$verRe" | select -last 1 -skip 1
$version32 = $url32 -split "$verRe" | Select-Object -last 1 -skip 1

$changelog_page = Invoke-WebRequest -uri $changelogs -UseBasicParsing

$re = "KeePass ${version32} released"
$URLChangelog = $changelog_page.Links | ? outerHtml -match $re | select -first 1 -expand href
$URLChangelog = $changelog_page.Links | Where-Object outerHtml -match $re | Select-Object -first 1 -expand href
if ($URLChangelog) { $URLChangelog = "$changelog_domain/$URLChangelog" }

$majorVersion = $version32 -split '\.' | select -first 1
$majorVersion = $version32 -split '\.' | Select-Object -first 1

@{
URL32 = $url32
Expand Down
4 changes: 2 additions & 2 deletions automatic/vscode-insiders.install/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ function Get-MergeTasks {
$packageArgs = @{
packageName = "$env:ChocolateyPackageName"
fileType = 'exe'
url64bit = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/05047486b6df5eb8d44b2ecd70ea3bdf775fd937/VSCodeSetup-x64-1.86.0-insider.exe'
url64bit = 'https://vscode.download.prss.microsoft.com/dbazure/download/insider/442c133fe92b5e2606c8242caae4e68938faccc7/VSCodeSetup-x64-1.87.0-insider.exe'

softwareName = 'Microsoft Visual Studio Code Insiders'

checksum64 = 'fbf93224dc22fdc93a7dfcc81a5c722784795de68c1079378fdf334a7e67ac3f6895e4f841ea06fa560a04d4994574db6cd370f1c19d6b0639a9e50b50672ada'
checksum64 = 'c54d64fcdd4c53b47540cf355e786bf0432dc1c2476131845a9e08efd3d6cb6a67ea62cc1f2ce5da6dd517652d52a3175a62a772fa9b3aaaa8c7c04b773e7a90'
checksumType64 = 'sha512'

silentArgs = '/verysilent /suppressmsgboxes /mergetasks="{0}" /log="{1}\install.log"' -f (Get-MergeTasks), (Get-PackageCacheLocation)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vscode-insiders.install</id>
<title>Visual Studio Code Insiders (Install)</title>
<version>1.86.0.20240131</version>
<version>1.87.0.20240201</version>
<authors>Microsoft</authors>
<owners>chocolatey-community</owners>
<projectUrl>https://code.visualstudio.com/insiders</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions automatic/vscode-insiders/vscode-insiders.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vscode-insiders</id>
<title>Visual Studio Code Insiders</title>
<version>1.86.0.20240131</version>
<version>1.87.0.20240201</version>
<authors>Microsoft</authors>
<owners>chocolatey-community</owners>
<projectUrl>https://code.visualstudio.com/insiders</projectUrl>
Expand Down Expand Up @@ -48,7 +48,7 @@ Example: `choco install vscode-insiders --params "/NoDesktopIcon /DontAddToPath"
]]></description>
<tags>microsoft visualstudiocode visualstudiocode-insiders vscode vscode-insiders development editor ide javascript typescript admin foss cross-platform</tags>
<dependencies>
<dependency id="vscode-insiders.install" version="[1.86.0.20240131]" />
<dependency id="vscode-insiders.install" version="[1.87.0.20240201]" />
</dependencies>
<releaseNotes>https://code.visualstudio.com/updates/#_preview-features</releaseNotes>
</metadata>
Expand Down
6 changes: 3 additions & 3 deletions automatic/vscode.install/tools/ChocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

$softwareName = 'Microsoft Visual Studio Code'
$version = '1.85.2'
$version = '1.86.0'
if ($version -eq (Get-UninstallRegistryKey "$softwareName").DisplayVersion) {
Write-Host "VS Code $version is already installed."
return
Expand All @@ -16,11 +16,11 @@ Close-VSCode
$packageArgs = @{
packageName = 'vscode.install'
fileType = 'exe'
url64bit = 'https://update.code.visualstudio.com/1.85.2/win32-x64/stable'
url64bit = 'https://update.code.visualstudio.com/1.86.0/win32-x64/stable'

softwareName = "$softwareName"

checksum64 = '76fe04ff2721f5586e853b61f116e2bf1bdaa15f436a9b4eed1f9a97bb1fe149'
checksum64 = '335330964a1dbfc5edce3a0c1bc87e8e8192518296d7e7e4c6d074ed8c221066'
checksumType64 = 'sha256'

silentArgs = '/verysilent /suppressmsgboxes /mergetasks="{0}" /log="{1}\install.log"' -f (Get-MergeTasks), (Get-PackageCacheLocation)
Expand Down
2 changes: 1 addition & 1 deletion automatic/vscode.install/vscode.install.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vscode.install</id>
<title>Visual Studio Code (Install)</title>
<version>1.85.2</version>
<version>1.86.0</version>
<authors>Microsoft</authors>
<owners>chocolatey-community</owners>
<projectUrl>https://code.visualstudio.com</projectUrl>
Expand Down
4 changes: 2 additions & 2 deletions automatic/vscode/vscode.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<metadata>
<id>vscode</id>
<title>Visual Studio Code</title>
<version>1.85.2</version>
<version>1.86.0</version>
<authors>Microsoft</authors>
<owners>chocolatey-community</owners>
<projectUrl>https://code.visualstudio.com</projectUrl>
Expand Down Expand Up @@ -45,7 +45,7 @@ Example: `choco install vscode --params "/NoDesktopIcon /DontAddToPath"`
]]></description>
<tags>microsoft visualstudiocode vscode development editor ide javascript typescript admin foss cross-platform</tags>
<dependencies>
<dependency id="vscode.install" version="[1.85.2]" />
<dependency id="vscode.install" version="[1.86.0]" />
</dependencies>
<releaseNotes>https://code.visualstudio.com/Updates</releaseNotes>
</metadata>
Expand Down

0 comments on commit 5f9796a

Please sign in to comment.