Skip to content

Commit

Permalink
build: set pyinstaller version and update build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzwald committed May 31, 2024
1 parent a59826b commit 0ce9414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
16 changes: 7 additions & 9 deletions build-instructions.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# macOS
# Linux / macOS

`pyinstaller -F -w -n ESPHome-Flasher -i icon.icns esphomeflasher/__main__.py`
* `pip install -r requirements_build.txt`
* `pyinstaller -F -w -n FujiNet-Flasher -i icon.icns esphomeflasher/__main__.py`

# Windows

1. Start up VM
2. Install Python (3) from App Store
3. Download esphome-flasher from GitHub
4. `pip install -e.` and `pip install pyinstaller`
5. Check with `python -m esphomeflasher.__main__`
6. `python -m PyInstaller.__main__ -F -w -n ESPHome-Flasher -i icon.ico esphomeflasher\__main__.py`
7. Go to `dist` folder, check ESPHome-Flasher.exe works.
* `pip install pyinstaller`
* `pip install -r requirements_build.txt`
* `pip install -e.`
* `python -m PyInstaller.__main__ -F -w -n FujiNet-Flasher -i icon.ico esphomeflasher\__main__.py`
3 changes: 2 additions & 1 deletion requirements_build.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ wheel
wxpython==4.1.1
esptool==3.0
requests>=2.24.0,<3
pyinstaller>=4.5.1,<5
pyinstaller==4.10
pyinstaller-hooks-contrib==2023.2
certifi
cryptography>=3.4.8

0 comments on commit 0ce9414

Please sign in to comment.