Skip to content

Commit 7afb855

Browse files
workflow/pyinstaller fixed path ui
1 parent 6f8e87c commit 7afb855

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
python -m pip install --upgrade pip
3939
pip install pyinstaller pyqt6 opencv-python
4040
- name: Build app
41-
run: pyinstaller --onefile --windowed osl_visualizer/main.py
41+
run: pyinstaller --onefile --windowed main.py --add-data "ui:osl_visualizer/ui"
4242
- name: Upload artifact
4343
uses: actions/upload-artifact@v4
4444
with:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ jobs:
5454
python -m pip install --upgrade pip
5555
pip install pyinstaller pyqt6 opencv-python
5656
- name: Build app
57-
run: cd osl_visualizer; pyinstaller --onefile --windowed main.py --add-data "ui:ui"; cd ..
57+
run: pyinstaller --onefile --windowed main.py --add-data "ui:osl_visualizer/ui"
5858
- name: Rename binary
59-
run: mv osl_visualizer/dist/main dist/OSL-GUI-mac
59+
run: mv dist/main dist/OSL-GUI-mac
6060
- name: Upload Release Asset
6161
uses: softprops/action-gh-release@v2
6262
with:

0 commit comments

Comments
 (0)