Skip to content

Commit 89186a5

Browse files
committed
python: Fix pyinstaller
- Include downloaded releases - Fix exe name Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 1b17be5 commit 89186a5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/software.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ jobs:
111111
mkdir releases\0.2.0
112112
Invoke-WebRequest -Uri https://github.com/FrameworkComputer/inputmodule-rs/releases/download/v0.2.0/ledmatrix.uf2 -OutFile releases\0.2.0\ledmatrix.uf2
113113
114+
# To run locally, need to make sure to include the pywin32 DLL
115+
# pyinstaller --onefile, --name "python/inputmodule/cli.py", --windowed, --add-data "releases;releases" --path C:\users\skype\appdata\local\packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\localcache\local-packages\Python312\site-packages\pywin32_system32 --add-data 'res;res' -p python/inputmodule python/inputmodule/cli.py
114116
- name: Create Executable
115-
uses: Martin005/pyinstaller-action@main
117+
uses: JohnAZoidberg/pyinstaller-action@dont-clean
116118
with:
117119
python_ver: '3.12'
118120
spec: python/inputmodule/cli.py #'src/build.spec'
119121
requirements: 'python/requirements.txt'
120-
upload_exe_with_name: 'ledmatrixgui'
121-
options: --onefile, --windowed, --add-data 'res;res'
122+
upload_exe_with_name: 'ledmatrixgui.exe'
123+
options: --onefile, --name "ledmatrixgui", --windowed, --add-data "releases;releases" --add-data 'res;res' -p python/inputmodule
122124

123125
package-python:
124126
name: Package Python

0 commit comments

Comments
 (0)