Skip to content

Commit

Permalink
0.7.43
Browse files Browse the repository at this point in the history
fix generate binary folders
  • Loading branch information
lumapu committed Aug 28, 2023
1 parent 3600a2e commit c586af9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions scripts/buildManifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ def buildManifest(path, infile, outfile):
esp32 = {}
esp32["chipFamily"] = "ESP32"
esp32["parts"] = []
esp32["parts"].append({"path": "bootloader.bin", "offset": 4096})
esp32["parts"].append({"path": "partitions.bin", "offset": 32768})
esp32["parts"].append({"path": "ota.bin", "offset": 57344})
esp32["parts"].append({"path": version[1] + "_" + sha + "_esp32.bin", "offset": 65536})
esp32["parts"].append({"path": "ESP32/bootloader.bin", "offset": 4096})
esp32["parts"].append({"path": "ESP32/partitions.bin", "offset": 32768})
esp32["parts"].append({"path": "ESP32/ota.bin", "offset": 57344})
esp32["parts"].append({"path": "ESP32/" + version[1] + "_" + sha + "_esp32.bin", "offset": 65536})
data["builds"].append(esp32)

esp8266 = {}
esp8266["chipFamily"] = "ESP8266"
esp8266["parts"] = []
esp8266["parts"].append({"path": version[1] + "_" + sha + "_esp8266.bin", "offset": 0})
esp8266["parts"].append({"path": "ESP8266/" + version[1] + "_" + sha + "_esp8266.bin", "offset": 0})
data["builds"].append(esp8266)

jsonString = json.dumps(data, indent=2)
Expand Down
5 changes: 4 additions & 1 deletion scripts/getVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def readVersion(path, infile):
versionnumber += line[p+13:].rstrip() + "."

os.mkdir(path + "firmware/")
os.mkdir(path + "firmware/s3/")
os.mkdir(path + "firmware/ESP8266/")
os.mkdir(path + "firmware/ESP32/")
os.mkdir(path + "firmware/ESP32-S2/")
os.mkdir(path + "firmware/ESP32-S3/")
sha = os.getenv("SHA",default="sha")

versionout = version[:-1] + "_" + sha + "_esp8266.bin"
Expand Down

0 comments on commit c586af9

Please sign in to comment.