mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 06:52:03 +08:00
working on script for winscp
This commit is contained in:
parent
3d0e5bf351
commit
21aa301729
@ -42,4 +42,4 @@ on_success:
|
||||
on_failure:
|
||||
- ps:
|
||||
on_finish:
|
||||
- ps:
|
||||
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
||||
|
@ -3,10 +3,10 @@
|
||||
# UPLOAD_USER - user to upload to sftp server
|
||||
# KEY is assumed to be path to a ssh key for UPLOAD_USER
|
||||
|
||||
param (
|
||||
[parameter(Mandatory=$true, ParameterSetName="dir")] [string]$DIR,
|
||||
[parameter(Mandatory=$true, ParameterSetName="key")] [string]$KEY,
|
||||
[parameter(Mandatory=$true, ParameterSetName="file")] [string]$FILES
|
||||
Param(
|
||||
[string]$DIR,
|
||||
[string]$KEY,
|
||||
[string]$FILE
|
||||
)
|
||||
UUSER=$env:UPLOAD_USER
|
||||
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR /hostkey=* /privatekey=$KEY /upload $FILES
|
||||
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR/ /hostkey=* /privatekey=$KEY /upload $FILES
|
||||
|
Loading…
x
Reference in New Issue
Block a user