diff --git a/ESP32_AP-Flasher/data/www/content_cards.json.gz b/ESP32_AP-Flasher/data/www/content_cards.json.gz index 60796166..88cfaeb5 100644 Binary files a/ESP32_AP-Flasher/data/www/content_cards.json.gz and b/ESP32_AP-Flasher/data/www/content_cards.json.gz differ diff --git a/ESP32_AP-Flasher/data/www/edit.html.gz b/ESP32_AP-Flasher/data/www/edit.html.gz index a44b9eb3..d002da20 100644 Binary files a/ESP32_AP-Flasher/data/www/edit.html.gz and b/ESP32_AP-Flasher/data/www/edit.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/favicon.ico.gz b/ESP32_AP-Flasher/data/www/favicon.ico.gz index 601de0ee..69425b74 100644 Binary files a/ESP32_AP-Flasher/data/www/favicon.ico.gz and b/ESP32_AP-Flasher/data/www/favicon.ico.gz differ diff --git a/ESP32_AP-Flasher/data/www/index.html.gz b/ESP32_AP-Flasher/data/www/index.html.gz index 715b4fa9..2413d5ee 100644 Binary files a/ESP32_AP-Flasher/data/www/index.html.gz and b/ESP32_AP-Flasher/data/www/index.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/jsontemplate-demo.html.gz b/ESP32_AP-Flasher/data/www/jsontemplate-demo.html.gz index 685399b6..0d7ef3ce 100644 Binary files a/ESP32_AP-Flasher/data/www/jsontemplate-demo.html.gz and b/ESP32_AP-Flasher/data/www/jsontemplate-demo.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/main.css.gz b/ESP32_AP-Flasher/data/www/main.css.gz index afc1b7c9..7547caaa 100644 Binary files a/ESP32_AP-Flasher/data/www/main.css.gz and b/ESP32_AP-Flasher/data/www/main.css.gz differ diff --git a/ESP32_AP-Flasher/data/www/main.js.gz b/ESP32_AP-Flasher/data/www/main.js.gz index 9c74dd51..48ecbdfd 100644 Binary files a/ESP32_AP-Flasher/data/www/main.js.gz and b/ESP32_AP-Flasher/data/www/main.js.gz differ diff --git a/ESP32_AP-Flasher/data/www/ota.js.gz b/ESP32_AP-Flasher/data/www/ota.js.gz index 7555781e..eae7ec69 100644 Binary files a/ESP32_AP-Flasher/data/www/ota.js.gz and b/ESP32_AP-Flasher/data/www/ota.js.gz differ diff --git a/ESP32_AP-Flasher/data/www/painter.js.gz b/ESP32_AP-Flasher/data/www/painter.js.gz index 9c2c3cca..8ae517d7 100644 Binary files a/ESP32_AP-Flasher/data/www/painter.js.gz and b/ESP32_AP-Flasher/data/www/painter.js.gz differ diff --git a/ESP32_AP-Flasher/data/www/setup.html.gz b/ESP32_AP-Flasher/data/www/setup.html.gz index ee38577a..e6ed5f76 100644 Binary files a/ESP32_AP-Flasher/data/www/setup.html.gz and b/ESP32_AP-Flasher/data/www/setup.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/setup.js.gz b/ESP32_AP-Flasher/data/www/setup.js.gz index ed5ceac4..11608d99 100644 Binary files a/ESP32_AP-Flasher/data/www/setup.js.gz and b/ESP32_AP-Flasher/data/www/setup.js.gz differ diff --git a/ESP32_AP-Flasher/data/www/upload-demo.html.gz b/ESP32_AP-Flasher/data/www/upload-demo.html.gz index a589516a..0b651d22 100644 Binary files a/ESP32_AP-Flasher/data/www/upload-demo.html.gz and b/ESP32_AP-Flasher/data/www/upload-demo.html.gz differ diff --git a/ESP32_AP-Flasher/data/www/variables-demo.html.gz b/ESP32_AP-Flasher/data/www/variables-demo.html.gz new file mode 100644 index 00000000..e5846ccf Binary files /dev/null and b/ESP32_AP-Flasher/data/www/variables-demo.html.gz differ diff --git a/ESP32_AP-Flasher/gzip_wwwfiles.py b/ESP32_AP-Flasher/gzip_wwwfiles.py index 513a8c42..6b03d597 100644 --- a/ESP32_AP-Flasher/gzip_wwwfiles.py +++ b/ESP32_AP-Flasher/gzip_wwwfiles.py @@ -16,7 +16,7 @@ def gzip_files(source_folder, destination_folder): print(f"Gzipping: {file}") - with open(source_file_path, 'rb') as f_in, gzip.open(destination_file_path, 'wb') as f_out: + with open(source_file_path, 'rb') as f_in, gzip.GzipFile(destination_file_path, 'wb', mtime=0) as f_out: shutil.copyfileobj(f_in, f_out) if __name__ == "__main__": @@ -24,4 +24,3 @@ if __name__ == "__main__": destination_folder = "data/www" # Replace with the path of the destination folder gzip_files(source_folder, destination_folder) -