mirror of https://github.com/arendst/Tasmota.git
17 lines
519 B
Python
17 lines
519 B
Python
Import("env")
|
|
|
|
# pio < 4.0.0
|
|
# from base64 import b64decode
|
|
# env.Replace(UPLOADER="pio\espupload.py")
|
|
# env.Replace(UPLOADERFLAGS="")
|
|
# env.Replace(UPLOADCMD="$UPLOADER -u " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + " -f $SOURCES")
|
|
|
|
# pio >= 4.0.0
|
|
env.Replace(UPLOADER="pio\espupload.py")
|
|
env.Replace(UPLOADERFLAGS="")
|
|
env.Replace(UPLOADCMD="$UPLOADER -u $UPLOAD_PORT -f $SOURCES")
|
|
|
|
'''
|
|
env.Replace(UPLOADCMD="pio\espupload.py -f $SOURCES") # Windows
|
|
env.Replace(UPLOADCMD="pio/espupload.py -f $SOURCES") # Linux
|
|
''' |