working upload script for windows/winscp. No more bintray.

This commit is contained in:
Joseph Lenox 2017-04-04 23:06:11 -05:00
parent 493461e504
commit c33179b4e0
3 changed files with 4 additions and 3 deletions

View File

@ -42,4 +42,4 @@ on_success:
on_failure:
- ps:
on_finish:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- ps:

View File

@ -9,4 +9,5 @@ Param(
[string]$FILE
)
Set-Variable -Name "UUSER" -Value "$env:UPLOAD_USER"
winscp.exe /command sftp://$UUSER@dl.slic3r.org:$DIR/ /hostkey=* /privatekey=$KEY /upload "put $FILE"
Set-Variable -Name "UPLOAD" -Value "$($FILE | Resolve-Path)"
winscp.com /privatekey=$KEY /command "open sftp://$UUSER@dl.slic3r.org/$DIR -hostkey=*" "put $UPLOAD ./$FILE" "exit"

View File

@ -3,7 +3,7 @@ cd package/win
./compile_wrapper.ps1 524 | Write-Output
./package_win32.ps1 524| Write-Output
cd ../../
& package/deploy/winscp.ps1 -dir win -key $BUILD_FOLDER/package/deploy/slic3r-upload.ppk.appveyor -file *.zip:
& package/deploy/winscp.ps1 -DIR win -KEY $BUILD_FOLDER/package/deploy/slic3r-upload.ppk -FILE *.zip:
if (!(Test-Path C:\project\slic3r\slic3r.par)) {
Add-AppveyorCompilationMessage -Message "Failed to package!" -Category Error