nerves-web-kiosk / webengine_kiosk

Qt WebEngine-based kiosk
Other
74 stars 14 forks source link

Clean compilation steps using Make and correct env path based on MIX_APP_PATH #19

Closed bjufre closed 4 years ago

bjufre commented 4 years ago

Add build_embedded: true in mix.exs in order to embed the kiosk executable to the _build directory instead of using symlinks.

fhunleth commented 4 years ago

Oh gosh....

This project has both source and build priv directories. The fix is to move priv/www to another directory - like assets/www, and then copy over the files to the _build/.../priv directory as part of the build process. Once that's done, the priv directory can be completely removed from the source tree. All other solutions lead to misery.

If this doesn't make sense, I'll put it on my todo list for this weekend or early next week.

bjufre commented 4 years ago

@fhunleth I've removed the priv directory and moved to assets as suggested. Also added a custom alias for compile in order to add as a compilation step the assets to the _build directory. Let's see if this is how you envisioned it.

(Hope I can help with something 😆 at least!)

bjufre commented 4 years ago

Moved the compilation step over to make and use the MIX_APP_PATH for compiling into the correct directory based on the different environments user might be compiling in. Also update dependencies as well as a chore task.