File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 4848
4949version = sys .argv [1 ]
5050
51- folder = f"build_{ version } "
51+ folder = f"../ build_{ version } "
5252os .system (f"mkdir { folder } " )
5353
5454for board in boards :
55- print (f"Compiling { board } ..." , end = "" , flush = True )
55+ print (f"Compiling { board } ..." , flush = True )
5656 os .system (f"arduino-cli cache clean" );
5757 command = f"arduino-cli compile --fqbn deauther:esp8266:d1_mini --build-properties \" build.extra_flags=-DESP8266 -D{ board } \" --output-dir { folder } "
5858 process = subprocess .Popen (command , shell = True , stdout = subprocess .PIPE )
5959 process .wait ()
6060 os .system (f"mv { folder } /esp8266_deauther.ino.bin { folder } /esp8266_deauther_{ version } _{ board } .bin" )
6161 print (f"OK" )
6262
63- os .system ("rm build/*.elf && rm build/*.map" )
63+ os .system (f"rm { folder } /esp8266_deauther.ino.elf" )
64+ os .system (f"rm { folder } /esp8266_deauther.ino.map" )
65+
6466print ("Finished :)" )
You can’t perform that action at this time.
0 commit comments