Skip to content

Commit 7f7d215

Browse files
author
Spacehuhn
committed
Update compile script
1 parent 684e47f commit 7f7d215

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

utils/arduino-cli-compile.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
boards = [
1212
"NODEMCU",
1313
"WEMOS_D1_MINI",
14+
"HACKHELD_VEGA",
1415
"MALTRONICS",
1516
"DISPLAY_EXAMPLE_I2C",
1617
"DISPLAY_EXAMPLE_SPI",
@@ -54,14 +55,20 @@
5455

5556
for board in boards:
5657
print(f"Compiling {board}...", flush=True)
58+
59+
if os.path.exists(f"{folder}/esp8266_deauther_{version}_{board}.bin"):
60+
print("Already compiled")
61+
continue
62+
5763
os.system(f"arduino-cli cache clean")
58-
command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-properties \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
64+
command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-property \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
5965
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
6066
process.wait()
61-
os.system(f"mv {folder}/esp8266_deauther.ino.bin {folder}/esp8266_deauther_{version}_{board}.bin")
67+
os.system(
68+
f"mv {folder}/esp8266_deauther.ino.bin {folder}/esp8266_deauther_{version}_{board}.bin")
6269
print(f"OK")
6370

6471
os.system(f"rm {folder}/esp8266_deauther.ino.elf")
6572
os.system(f"rm {folder}/esp8266_deauther.ino.map")
6673

67-
print("Finished :)")
74+
print("Finished :)")

0 commit comments

Comments
 (0)