Skip to content

server : always regenerate asset hpp before compile #2643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

jhen0409
Copy link
Collaborator

@jhen0409 jhen0409 commented Aug 17, 2023

Add ./examples/server/deps.sh into Makefile & CMakelists.txt, so we can avoid add the generated hpp files into git.

I think this change should be helpful, as I realize that most PRs for the server example are often required to fix conflicts.

Also add --no-download to skip preact bundle download for reducing the loadings. We can update it by run ./deps.sh manually if needed.

TODO:

  • Ubuntu CI
  • Windows CI

@jhen0409 jhen0409 force-pushed the server-ignore-hpp-asset branch from ce29dc7 to 580e02e Compare August 17, 2023 11:59
@jhen0409 jhen0409 marked this pull request as draft August 17, 2023 12:12
@jhen0409 jhen0409 force-pushed the server-ignore-hpp-asset branch from d8e03ed to af4960a Compare August 17, 2023 12:50
@jhen0409
Copy link
Collaborator Author

jhen0409 commented Aug 17, 2023

I found it can be hard to keep things simple on Windows, the xxd command will required an additional setup. I‘m expect the minimum requirement for Windows is just cmake (or w64devkit), so i'll give it up for now.

Also, it’s worth to make the ./deps.sh support for old version of xxd, so I’ll take that to an another PR. Also thanks to @cebtenzzre for the tip.

@jhen0409 jhen0409 closed this Aug 17, 2023
@jhen0409 jhen0409 deleted the server-ignore-hpp-asset branch August 17, 2023 22:09
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