emsesp / EMS-ESP-Flasher

Flash tool for uploading EMS-ESP firmware
MIT License
3 stars 2 forks source link

EMS-ESP-Flasher

Flash tool for uploading EMS-ESP firmware.

Based on https://github.com/Jason2866/ESP_Flasher/ version 3.0.4 with these modifications:

Installation

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:

Building the platform executables

macOS

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

Windows

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.

Creating the installers in GitHub

The binary artifacts will only be created on a tag. Use:

git tag -f v1.1.0 
git push --tags -f