* Fix gcode previews with special chars not loading

* Add .gitignore file (#108)

* Bulletproof ci.py (#107)

* Implement file sorting (implement #89)

* Set chip family to ESP32-S3 for specific models (fix #67)

* Add files menu to params panel while printing (implement #80)

* Update ci.py (#110)

Typo fix for ESP32-S3 boards array name

---------

Co-authored-by: Sebastian Göls <6608231+Abrynos@users.noreply.github.com>
Co-authored-by: Miroslav Zuzelka <mzuzelka@gmail.com>
This commit is contained in:
Sims
2024-06-28 19:11:20 +02:00
committed by GitHub
parent c640d7fade
commit e2c2a38b20
13 changed files with 107 additions and 34 deletions

13
ci.py
View File

@@ -10,6 +10,12 @@ CYD_PORTS = [
"esp32-3248S035C-V",
#"esp32-4827S043R-SD",
]
ESP_S3_CHIPS = [
"esp32-8048S043C-SD",
"esp32-4827S043C-SD",
]
BASE_DIR = os.getcwd()
def get_manifest(base_path : str, device_name : str):
@@ -19,7 +25,7 @@ def get_manifest(base_path : str, device_name : str):
"new_install_prompt_erase": True,
"builds": [
{
"chipFamily": "ESP32",
"chipFamily": "ESP32-S3" if device_name in ESP_S3_CHIPS else "ESP32",
"parts": [
{
"path": f"{base_path}/bootloader.bin",
@@ -81,7 +87,10 @@ for port in CYD_PORTS:
add_configuration(port)
os.chdir(BASE_DIR)
shutil.copytree("./out", "./_site/out")
out_dir = "./_site/out"
if os.path.exists(out_dir):
shutil.rmtree(out_dir)
shutil.copytree("./out", out_dir)
with open("./_site/OTA.json", "w") as f:
json.dump({"Configurations": configurations}, f)