mirror of https://github.com/arendst/Tasmota.git
fix: http-uploader.py cross platform support, espupload.py executable
This commit is contained in:
parent
01b5df9651
commit
5895637e9a
|
@ -1,4 +1,5 @@
|
|||
Import("env")
|
||||
import os
|
||||
|
||||
# pio < 4.0.0
|
||||
# from base64 import b64decode
|
||||
|
@ -7,11 +8,6 @@ Import("env")
|
|||
# env.Replace(UPLOADCMD="$UPLOADER -u " + b64decode(ARGUMENTS.get("UPLOAD_PORT")) + " -f $SOURCES")
|
||||
|
||||
# pio >= 4.0.0
|
||||
env.Replace(UPLOADER="pio\espupload.py")
|
||||
env.Replace(UPLOADER=os.path.join("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
|
||||
'''
|
Loading…
Reference in New Issue