Skip to content

Compress html to genereate .h with byte array as part of build process#46

Merged
DutchDevelop merged 4 commits intoDutchDevelop:mainfrom
longrackslabs:compress_html
Apr 25, 2024
Merged

Compress html to genereate .h with byte array as part of build process#46
DutchDevelop merged 4 commits intoDutchDevelop:mainfrom
longrackslabs:compress_html

Conversation

@longrackslabs
Copy link
Contributor

@longrackslabs longrackslabs commented Mar 31, 2024

Enhanced the build process to automatically compress html files into the .h file bytearray. For example, setuppage.html -> setuppage.h that contains the compressed bytearray of the setuppage.html. the .h file is only generated if it is missing or the .html file is newer.

I updated the README on the process and the 2 requirements (python, qpdf library).

This should work for other files like updatepage.html by adding them to the list in compress_html.py. I did not do that as I am only testing the pages on the device. Just add the html files to the list.

@DutchDevelop
Copy link
Owner

Conflicts must be resolved before merging

@longrackslabs
Copy link
Contributor Author

longrackslabs commented Apr 20, 2024

setupPage.h is deleted from the branch/git as it will be generated now (as setuppage.h) and added .gitignore - not hand edited so it doesn't need to get checked in anymore. the file shows as deleted in the 'files changed' of the PR - i though git would handle this deleting this file as part of the merge?

@DutchDevelop
Copy link
Owner

Not sure, it doesn't allow me to commit. Doesn't say what the cause is either on github mobile

@longrackslabs
Copy link
Contributor Author

Ok I'll see if I can resolve the conflicts

@longrackslabs
Copy link
Contributor Author

longrackslabs commented Apr 21, 2024

ok, looks like I needed to 'git rm setupPage.h" in addition to deleting the file and adding it to .gitignore. I synced my fork to the latest and did a clean test merge so hopefully this will work now!

@DutchDevelop DutchDevelop merged commit d9c6e20 into DutchDevelop:main Apr 25, 2024
aerodomigue pushed a commit to aerodomigue/BLLEDController that referenced this pull request Jul 13, 2025
Compress html to genereate .h with byte array as part of build process
DutchDevelop pushed a commit that referenced this pull request Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants