Flash tool for uploading EMS-ESP firmware.
Based on https://github.com/Jason2866/ESP_Flasher/ version 3.0.4 with these modifications:
jason2866/upload-artifact@v2.0.3
instead of actions/upload-artifact@v4
because of the multi-artifact feature (https://github.com/actions/download-artifact/pull/202)If you plan to run Python in a virtual environment, either let VSC do this for you, or manually like:
python -m venv venv
source ./venv/bin/activate`
Install the library's:
pip install --upgrade build
pip install -e .
To build and test the a module for distribution (places in dist
folder):
python -m build
pip install --editable .
To run as a module, when building and testing locally:
python -m emsesp_flasher
To test the module build:
pyinstaller -F -w -n EMS-ESP-Flasher -i icon.icns emsesp_flasher/__main__.py
Will create a dist/EMS-ESP-Flasher
file and *.app
folder
python -m PyInstaller -F -w -n EMS-ESP-Flasher -i icon.ico emsesp_flasher\__main__.py
This will create the dist/EMS-ESP-Flasher.exe
file.
If the Windows firewall blocks the .exe file, it's a false positive and you can accept/keep. See here.
The binary artifacts will only be created on a tag. Use:
git tag -f v1.1.0
git push --tags -f