mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-31 13:41:59 +08:00
13 lines
320 B
PowerShell
Executable File
13 lines
320 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
|
|
)
|
|
UUSER=$env:UPLOAD_USER
|
|
winscp.exe scp://$UUSER@dl.slic3r.org:$DIR/ /hostkey=* /privatekey=$KEY /upload $FILES
|