-
Notifications
You must be signed in to change notification settings - Fork 119
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
Adding building of v2 UI #487
Conversation
Can now set the `GUI_NAME` env var to the directory containing the GUI. The script is a lot more flexable now and handles nested resources, as well as a mix of compressed and uncompresssed resources
Thanks for this. I'll try soon . I think webserver_static.cpp needs a bit of modification to handle the index.html and the /assets subfolder |
Can now set the `GUI_NAME` env var to the directory containing the GUI. The script is a lot more flexable now and handles nested resources, as well as a mix of compressed and uncompresssed resources
a267348
to
fa74fe4
Compare
@jeremypoulter , how I should use this now to build the fw with new UI ? |
There are some additional envvars you need to set to build the UI: https://github.com/OpenEVSE/ESP32_WiFi_V4.x/pull/487/files#diff-d0777657fa3fd81d23aaf7273e58aee453b04e67882517900c56daeef9b3e4c1R102-R104 so assuming you have teh v2 GUI source checked out in the GUI_NAME=openevse-gui-v2 PLATFORMIO_BUILD_FLAGS='-D DISABLE_WIFI_PORTAL -D WEB_SERVER_ROOT_PAGE_INDEX' pio run ... eg if you want to switch from one GUI to another, or export GUI_NAME=openevse-gui-v2
export PLATFORMIO_BUILD_FLAGS='-D DISABLE_WIFI_PORTAL -D WEB_SERVER_ROOT_PAGE_INDEX'
pio run ... |
Can I setup those vars in platoformio.ini directly ? |
changed js to text/javascript ( nowdays recommended ) added missing files in script
Ui2 build
…for the release check to work properly
Can now set the
GUI_NAME
env var to the directory containing the GUI. The script is a lot more flexable now and handles nested resources, as well as a mix of compressed and uncompresssed resources