Skip to content

Commit

Permalink
[Publish] - Update WinSCP Core to v6.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomohulk committed May 23, 2023
1 parent 0a12b6b commit c617a13
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

env:
ModuleVersion: 5.21.8.10
ModuleVersion: 6.1.0.0
ReleaseNotes: ${{ github.event.head_commit.message }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
Expand Down
20 changes: 1 addition & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
# WinSCP PowerShell Module Wrapper
[![CI/CD](https://github.com/tomohulk/WinSCP/actions/workflows/Build.yml/badge.svg)](https://github.com/tomohulk/WinSCP/actions/workflows/Build.yml)

## Overhaul complete:
I have been revisiting this module as of late, add making some major changes:

1. New functions:
* Get-WinSCPSession
* Get-WinSCPHostKeyFingerprint
* New-WinSCPSessionOption
* New-WinSCPTransferResumeSupport
2. The `New-WinSCPSession` has been split into two functions, most of the configurations for the session have been moved to the `New-WinSCPSessionOption` command. This will mimic the functionality of `New-CimSessionOption` and `New-CimSession`.
* `PS C:\> New-WinSCPSession -SessionOption (New-WinSCPSessionOption -HostName ftp.tomohulk.github.io)`
3. The session is not longer auto disposed when passed in the pipeline, handling the session state is now your responsibility.
4. I am completely overhauling the help, and adding more examples using platyPS.
5. The `New-WinSCPSessionOption` defaults to using Anonymous authentication.
6. Updated pester tests.
7. Re implemented AppVeyor build.
8. Auto publishing to both PowerShellGallery.com and GitHub Releases.
9. Lots of bug fixes.

## Use at your own risk.

This module can be installed from the [PowerShellGet Gallery](https://www.powershellgallery.com/packages/WinSCP/), You need [WMF 5](https://www.microsoft.com/en-us/download/details.aspx?id=44987) to use this feature.
Expand Down Expand Up @@ -57,7 +39,7 @@ Install-Module -Name WinSCP
* [Test-WinSCPPath](https://github.com/tomohulk/WinSCP/wiki/Test-WinSCPPath)


## Examples
## Example

```PowerShell
# Capture credentials.
Expand Down
8 changes: 4 additions & 4 deletions Update-WinSCPCore.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ if ($publishedVersion -gt $currentVersion) {
}

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

# TODO
# Ensure PlatyPS is updated to the latest module version.
Expand All @@ -67,7 +67,7 @@ if ($publishedVersion -gt $currentVersion) {

try {
git add .
git commit -a -m "Build - Updating WinSCP Core to $publishedVersion."
git commit -a -m "[Publish] - Updating WinSCP Core to $publishedVersion."
git push
} catch {
Write-Error $_
Expand Down
Binary file modified WinSCP/bin/WinSCP.exe
Binary file not shown.
Binary file modified WinSCP/lib/net40/WinSCPnet.dll
Binary file not shown.
Binary file modified WinSCP/lib/netstandard2.0/WinSCPnet.dll
Binary file not shown.

0 comments on commit c617a13

Please sign in to comment.