Script fix

This commit is contained in:
itswait
2020-08-22 09:20:55 +08:00
parent 7348645410
commit f2f5df33d6
5 changed files with 31 additions and 15 deletions

16
py_to_exe.ps1 Normal file
View File

@@ -0,0 +1,16 @@
# 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