Skip to content

Commit

Permalink
Build - Updating WinSCP Core to 5.13.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
dotps1 committed May 14, 2018
1 parent d16f1b9 commit 4ab17d8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Update-WinSCPCore.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#requires -Modules platyPS
#requires -Modules PSAppVeyor

[CmdletBinding()]
[OutputType()]
Expand Down Expand Up @@ -36,9 +36,7 @@ if ($publishedVersion -gt $currentVersion) {

$downloader.Dispose()
} catch {
$PSCmdlet.ThrowTerminatingError(
$_
)
Write-Error $_
exit
}

Expand All @@ -47,12 +45,16 @@ if ($publishedVersion -gt $currentVersion) {
Move-Item -Path "${env:TEMP}\WinSCP\*.exe" -Destination "${pwd}\WinSCP\bin\" -Force -Confirm:$false -ErrorAction Stop
Move-Item -Path "${env:TEMP}\WinSCP\*.dll" -Destination "${pwd}\WinSCP\lib\" -Force -Confirm:$false -ErrorAction Stop
} catch {
$PSCmdlet.ThrowTerminatingError(
$_
)
Write-Error $_
exit
}

# Update AppVeyor yml build info.
$yml = Get-Content -Path ${pwd}\appveyor.yml
$yml = $yml -replace ($yml | Select-String -Pattern "\d.*\d").Matches.Value[0], $publishedVersion
Set-Content -Path ${pwd}\appveyor.yml -Value $yml
Update-AppVeyorProjectBuildNumber -AccountName dotps1 -ProjectName WinSCP -BuildNumber 0

# Clean up downloaded and extracted files.
Remove-Item -Path "${env:TEMP}\$payloadName" -Force -Confirm:$false
Remove-Item -Path "${env:TEMP}\WinSCP" -Recurse -Force -Confirm:$false
Expand All @@ -62,9 +64,7 @@ if ($publishedVersion -gt $currentVersion) {
git commit -a -m "Build - Updating WinSCP Core to $publishedVersion."
git push
} catch {
$PSCmdlet.ThrowTerminatingError(
$_
)
Write-Error $_
exit
}
}
Binary file modified WinSCP/lib/WinSCPnet.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# http://www.appveyor.com/docs/appveyor-yml

version: 5.13.1.{build}
version: 5.13.2.{build}
os: WMF 5
branches:
only:
Expand Down

0 comments on commit 4ab17d8

Please sign in to comment.