Skip to content

Commit d6058be

Browse files
committed
use venv in release-macos job to correctly add libmediainfo binary to app
1 parent d05246f commit d6058be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@ jobs:
1616
with:
1717
python-version: '3.6'
1818
architecture: x64
19+
- name: Create and activate venv
20+
run: |
21+
python -m venv venv
22+
source venv/bin/activate
1923
- name: Install dependencies
2024
run: pip install -r requirements-dev.txt
2125
- name: Create app with pyinstaller
22-
run: pyinstaller --windowed --name "Study Planner" --icon icons/icon_square.png main.py
26+
run: pyinstaller --windowed --name "Study Planner" --add-binary 'venv/lib/python3.6/site-packages/pymediainfo/libmediainfo.0.dylib:.' --icon icons/icon_square.png main.py
2327
- name: Compress app to archive
2428
run: |
2529
cd dist

0 commit comments

Comments
 (0)