cpdctrl-gui/.scripts/install_gui.ps1
2025-04-03 19:02:48 +02:00

16 lines
565 B
PowerShell

# This creates & installs cpdctrl-gui using pyinstaller
# into a single, gigantic exe file. Very modern.
# The --paths ..\cpdctrl is necessary, otherwise it takes the version that was installed with pip
cd ~\cpd-dev
.\venv\Scripts\activate.ps1
mkdir build
cd build
pyinstaller ..\cpdctrl_gui_launcher.py `
--onefile `
--name "cpdctrl-gui" `
--windowed `
--icon ..\cpdctrl-gui\cpdctrl_gui\resources\icons\icon.png `
--exclude-module pyside6 `
--paths ..\cpdctrl `
--paths ..\cpdctrl_gui `
--add-data ..\cpdctrl-gui\cpdctrl_gui\resources:cpdctrl_gui\resources