Skip to content

Commit 76822e9

Browse files
Merge pull request #56 from FrameworkComputer/pyinstaller
2 parents ffb405a + 7b6df9b commit 76822e9

File tree

9 files changed

+307
-211
lines changed

9 files changed

+307
-211
lines changed

.github/workflows/software.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,24 @@ jobs:
7676
name: inputmodule-control.exe
7777
path: target/x86_64-pc-windows-msvc/release/inputmodule-control.exe
7878

79+
# Or manually with
80+
# pyinstaller --onefile --windowed --add-data 'res;res' ledmatrix_control.py
81+
build-gui:
82+
name: Build GUI
83+
runs-on: windows-latest
84+
# runs-on: ubuntu-22.04
85+
steps:
86+
- uses: actions/checkout@v3
87+
88+
- name: Create Executable
89+
uses: Martin005/pyinstaller-action@main
90+
with:
91+
python_ver: '3.11'
92+
spec: ledmatrix_control.py #'src/build.spec'
93+
requirements: 'requirements.txt'
94+
upload_exe_with_name: 'ledmatrix_control.py'
95+
options: --onefile, --windowed, --add-data 'res;res'
96+
7997
lints:
8098
name: Lints
8199
runs-on: ubuntu-22.04

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ venv
1313
!.vscode/tasks.json
1414
!.vscode/extensions.json
1515
!.vscode/settings.json
16-
1716
*.uf2
1817

1918
# Panic dump
2019
message.bin
20+
21+
# pyinstaller
22+
build/
23+
dist/
24+
ledmatrix_control.spec

c1minimal/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ When booting up this LED is lit in green color.
88
Its color and brightness can be controlled via the commands:
99

1010
```sh
11-
> ./control.py --brightness 255
12-
> ./control.py --get-brightness
11+
> ./ledmatrix_control.py --brightness 255
12+
> ./ledmatrix_control.py --get-brightness
1313
Current brightness: 255
1414

15-
> ./control.py --set-color yellow
16-
> ./control.py --get-color
15+
> ./ledmatrix_control.py --set-color yellow
16+
> ./ledmatrix_control.py --get-color
1717
Current color: RGB:(255, 255, 0)
1818
```

ledmatrix/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ Instead try out the [Python script](../python.md):
155155

156156
```sh
157157
# Snake
158-
./control.py --snake
158+
./ledmatrix_control.py --snake
159159

160160
# Pong (Seems broken at the moment)
161-
./control.py --pong-embedded
161+
./ledmatrix_control.py --pong-embedded
162162
```
163163

164164
###### Game of Life

0 commit comments

Comments
 (0)