16 lines
537 B
PowerShell
16 lines
537 B
PowerShell
# If you can't run this script, please execute the following command in PowerShell.
|
|
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
|
|
|
|
$CLOUDSCRAPER_PATH=$(python -c 'import cloudscraper as _; print(_.__path__[0])' | select -Last 1)
|
|
|
|
pyinstaller --onefile AV_Data_Capture.py `
|
|
--hidden-import ADC_function.py `
|
|
--hidden-import core.py `
|
|
--add-data "$CLOUDSCRAPER_PATH;cloudscraper"
|
|
|
|
rmdir -Recurse -Force build
|
|
rmdir -Recurse -Force __pycache__
|
|
rmdir -Recurse -Force AV_Data_Capture.spec
|
|
|
|
echo "[Make]Finish"
|
|
pause |