mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 04:55:55 +08:00
working upload script for windows/winscp. No more bintray.
This commit is contained in:
parent
493461e504
commit
c33179b4e0
@ -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:
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user