Skip to content

Commit

Permalink
Remove testing upload for windows release
Browse files Browse the repository at this point in the history
  • Loading branch information
keneanung committed Oct 3, 2018
1 parent 9a88386 commit d247e2a
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions CI/appveyor.after_success.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,6 @@ windeployqt.exe --release mudlet.exe
Remove-Item * -include *.cpp, *.o

if ("$Env:APPVEYOR_REPO_TAG" -eq "false") {
# get winscp .NET dll for uploads
# activate higher TLS version. Seems PS only uses 1.0 by default
# credit: https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel/48030563#48030563
[Net.ServicePointManager]::SecurityProtocol = [System.Security.Authentication.SslProtocols] "tls, tls11, tls12"
(New-Object System.Net.WebClient).DownloadFile("https://downloads.sourceforge.net/project/winscp/WinSCP/5.13.4/WinSCP-5.13.4-Automation.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fwinscp%2Ffiles%2FWinSCP%2F5.13.4%2FWinSCP-5.13.4-Automation.zip%2Fdownload&ts=1538514946", "C:\src\Winscp-automation.zip")
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\src\Winscp-automation.zip", "C:\src\Winscp-automation\")
Add-Type -Path 'C:\src\Winscp-automation\WinSCPnet.dll'

# do the upload
$sessionOptions = New-Object WinSCP.SessionOptions -Property @{
# sftp://
Protocol = [WinSCP.Protocol]::Scp
HostName = "mudlet.org"
UserName = "keneanung"
SshPrivateKeyPath = "$Env:APPVEYOR_BUILD_FOLDER\CI\mudlet-deploy-key-windows.ppk"
SshPrivateKeyPassphrase = "${Env:DEPLOY_KEY_PASS}"
}
$session = New-Object WinSCP.Session
$fingerprint = $session.ScanFingerprint($sessionOptions, "SHA-256")
$sessionOptions.SshHostKeyFingerprint = $fingerprint
# Connect
$session.Open($sessionOptions)
$session.PutFiles("${Env:APPVEYOR_BUILD_FOLDER}\src\release\mudlet.exe", "${Env:DEPLOY_PATH}/mudlet.exe")
$session.Close()
$session.Dispose()
$DEPLOY_URL="http://www.mudlet.org/wp-content/files/Mudlet-${Env:VERSION}-windows-installer.exe"
$DEPLOY_URL = "https://ci.appveyor.com/api/buildjobs/$Env:APPVEYOR_JOB_ID/artifacts/src%2Fmudlet.zip"
} else {
Write-Output "=== Cloning installer project ==="
Expand Down

0 comments on commit d247e2a

Please sign in to comment.