Files
AV_Data_Capture/py_to_exe.ps1
hejianjun 1d46a70eed 1. 动态加载爬虫
2. 修复pyinstaller路径查找子包问题
3. madou的番号处理移动到爬虫内部
4. 过滤javday中多余的tag
2023-03-27 15:37:00 +08:00

26 lines
725 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# If you can't run this script, please execute the following command in PowerShell.
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
# bugfixset submodules find path
$Env:PYTHONPATH=$pwd.path
$PYTHONPATH=$pwd.path
mkdir build
mkdir __pycache__
pyinstaller --collect-submodules "scrapinglib" `
--collect-submodules "ImageProcessing" `
--collect-data "face_recognition_models" `
--collect-data "cloudscraper" `
--collect-data "opencc" `
--add-data "Img;Img" `
--add-data "config.ini;." `
--onefile Movie_Data_Capture.py
rmdir -Recurse -Force build
rmdir -Recurse -Force __pycache__
rmdir -Recurse -Force Movie_Data_Capture.spec
echo "[Make]Finish"
pause