mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-10-08 21:46:34 +08:00
13 lines
365 B
PowerShell
Executable File
13 lines
365 B
PowerShell
Executable File
# Prerequisites
|
|
# Environment Variables:
|
|
# UPLOAD_USER - user to upload to sftp server
|
|
# KEY is assumed to be path to a ssh key for UPLOAD_USER
|
|
|
|
Param(
|
|
[string]$DIR,
|
|
[string]$KEY,
|
|
[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"
|