File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments