Skip to content

Commit

Permalink
Merge pull request #2501 from JPRuskin/fix-winscp.install
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm authored Jul 10, 2024
2 parents 5e7fadd + 36859dd commit bb26dd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions automatic/winscp.install/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition
$packageArgs = @{
packageName = 'winscp'
fileType = 'exe'
file = Get-Item $toolsPath\*.exe
file64 = Get-Item $toolsPath\*.exe
file = "$toolsPath\WinSCP-6.3.4-Setup.exe"
file64 = "$toolsPath\WinSCP-6.3.4-Setup.exe"
silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
}
Install-ChocolateyInstallPackage @packageArgs
Expand Down
7 changes: 5 additions & 2 deletions automatic/winscp.install/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ $releases = 'https://winscp.net/eng/downloads.php'
$re = 'WinSCP.+\.exe/download$'

function global:au_SearchReplace {
@{
@{
"$($Latest.PackageName).nuspec" = @{
"(\<releaseNotes\>).*?(\</releaseNotes\>)" = "`${1}$($Latest.ReleaseNotes)`$2"
}

"tools\chocolateyInstall.ps1" = @{
"(?i)(^\s*file\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`""
"(?i)(^\s*file64\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName32)`""
}
".\legal\VERIFICATION.txt" = @{
"(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)"
"(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)"
Expand Down

0 comments on commit bb26dd5

Please sign in to comment.