Skip to content

Commit dc91c54

Browse files
committed
Fix Windows build (can't believe I made this mistake)
1 parent 9809250 commit dc91c54

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/win_build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,18 @@ jobs:
2525
python -m pip install --upgrade pip
2626
pip install -r requirements.txt
2727
28+
- name: Find customtkinter path
29+
id: find_path
30+
run: |
31+
$path = python -c "import customtkinter; import os; print(os.path.dirname(customtkinter.__file__))"
32+
echo "CUSTOMTKINTER_PATH=$path" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
33+
2834
- name: Build the executable with PyInstaller
2935
run: |
3036
pyinstaller --noconfirm --onedir --windowed --icon ".\cmdcompass\static\icon.ico" --name "cmdCompass" `
3137
--add-data ".\cmdcompass\data:data" `
3238
--add-data ".\cmdcompass\static:static" `
33-
--add-data "C:\Users\John W\AppData\Local\Programs\Python\Python312\Lib\site-packages\customtkinter:customtkinter" `
39+
--add-data "${{ env.CUSTOMTKINTER_PATH }}:customtkinter" `
3440
--collect-all "tkinterweb" `
3541
--distpath ".\dist" `
3642
".\cmdcompass\main.py"

0 commit comments

Comments
 (0)