Tasmota/pio-tools/sftp-uploader.py

13 lines
410 B
Python
Raw Normal View History

Import("env")
2019-10-23 12:11:53 +01:00
# pio < 4.0.0
# from base64 import b64decode
# env.Replace(UPLOADER="scp")
# env.Replace(UPLOADERFLAGS="")
# env.Replace(UPLOADCMD="$UPLOADER $SOURCES " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + "/" + b64decode(ARGUMENTS.get("PIOENV")) + ".bin")
# pio >= 4.0.0
env.Replace(UPLOADER="scp")
env.Replace(UPLOADERFLAGS="")
2019-10-23 12:11:53 +01:00
env.Replace(UPLOADCMD='$UPLOADER $SOURCES "$UPLOAD_PORT/${PIOENV}.bin"')