opencc need in pyinstaller --add-data

This commit is contained in:
lededev
2021-11-01 05:07:53 +08:00
parent 3b498d32ca
commit 3786f58bb6
6 changed files with 15 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ pip3 install -r requirements.txt
pip3 install cloudscraper==1.2.52
pyinstaller --onefile AV_Data_Capture.py --hidden-import ADC_function.py --hidden-import core.py \
--add-data "$(python3 -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1):cloudscraper" \
--add-data "$(python3 -c 'import opencc as _; print(_.__path__[0])' | tail -n 1):opencc" \
--add-data "Img:Img" \
--add-data "config.ini:." \