Skip to content

Commit

Permalink
[beef-tool] Create workflow for beef-tool executable
Browse files Browse the repository at this point in the history
  • Loading branch information
HWXLR8 committed Sep 29, 2024
1 parent e5e56e9 commit 422e23f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/beef-tool.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build beef-tool

on: [push, pull_request]

jobs:
build:
runs-on: windows-latest

steps:
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install dependencies
run: |
pip install pyinstaller
- name: Package beef-tool
run: |
pyinstaller --onefile --noconsole beef-tool/beef-tool.py
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: beef-tool.exe
path: beef-tool/dist/beef-tool.exe
6 changes: 3 additions & 3 deletions beef-tool/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# beef-board firmware upgrade utility
1. Run `drivers/install_all_drivers.bat`
2. Place your fw file in the same directory as `beef-tool.pyc.py`
3. Make sure your fw file is named `fw.hex`
4. Run `beef-tool.pyc.py`
2. Place your fw file in the same directory as `beef-tool.exe`
3. Make sure your fw file is named `beef.hex`
4. Run `beef-tool.exe`
5. Put beef-board in programming mode
6. Click the button in the UI to upgrade the FW
File renamed without changes.

0 comments on commit 422e23f

Please sign in to comment.