mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2025-12-12 15:50:47 -08:00
Update compile script
This commit is contained in:
@@ -11,6 +11,7 @@ import sys
|
|||||||
boards = [
|
boards = [
|
||||||
"NODEMCU",
|
"NODEMCU",
|
||||||
"WEMOS_D1_MINI",
|
"WEMOS_D1_MINI",
|
||||||
|
"HACKHELD_VEGA",
|
||||||
"MALTRONICS",
|
"MALTRONICS",
|
||||||
"DISPLAY_EXAMPLE_I2C",
|
"DISPLAY_EXAMPLE_I2C",
|
||||||
"DISPLAY_EXAMPLE_SPI",
|
"DISPLAY_EXAMPLE_SPI",
|
||||||
@@ -54,14 +55,20 @@ os.system(f"mkdir {folder}")
|
|||||||
|
|
||||||
for board in boards:
|
for board in boards:
|
||||||
print(f"Compiling {board}...", flush=True)
|
print(f"Compiling {board}...", flush=True)
|
||||||
|
|
||||||
|
if os.path.exists(f"{folder}/esp8266_deauther_{version}_{board}.bin"):
|
||||||
|
print("Already compiled")
|
||||||
|
continue
|
||||||
|
|
||||||
os.system(f"arduino-cli cache clean")
|
os.system(f"arduino-cli cache clean")
|
||||||
command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-properties \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
|
command = f"arduino-cli compile --fqbn deauther:esp8266:generic --build-property \"build.extra_flags=-DESP8266 -D{board}\" --output-dir {folder}"
|
||||||
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
|
process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
|
||||||
process.wait()
|
process.wait()
|
||||||
os.system(f"mv {folder}/esp8266_deauther.ino.bin {folder}/esp8266_deauther_{version}_{board}.bin")
|
os.system(
|
||||||
|
f"mv {folder}/esp8266_deauther.ino.bin {folder}/esp8266_deauther_{version}_{board}.bin")
|
||||||
print(f"OK")
|
print(f"OK")
|
||||||
|
|
||||||
os.system(f"rm {folder}/esp8266_deauther.ino.elf")
|
os.system(f"rm {folder}/esp8266_deauther.ino.elf")
|
||||||
os.system(f"rm {folder}/esp8266_deauther.ino.map")
|
os.system(f"rm {folder}/esp8266_deauther.ino.map")
|
||||||
|
|
||||||
print("Finished :)")
|
print("Finished :)")
|
||||||
|
|||||||
Reference in New Issue
Block a user