diff --git a/Makefile b/Makefile index 023c612..1b70b22 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ make: @echo "[+]Pyinstaller make" pyinstaller --onefile Movie_Data_Capture.py --hidden-import ADC_function.py --hidden-import core.py \ --hidden-import "ImageProcessing.cnn" \ + --python-option u \ --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 "`python3 -c 'import face_recognition_models as _; print(_.__path__[0])' | tail -n 1`:face_recognition_models" \ diff --git a/py_to_exe.ps1 b/py_to_exe.ps1 index 9542421..399963b 100644 --- a/py_to_exe.ps1 +++ b/py_to_exe.ps1 @@ -10,6 +10,7 @@ mkdir __pycache__ pyinstaller --onefile Movie_Data_Capture.py ` --hidden-import "ImageProcessing.cnn" ` + --python-option u ` --add-data "$FACE_RECOGNITION_MODELS;face_recognition_models" ` --add-data "$CLOUDSCRAPER_PATH;cloudscraper" ` --add-data "$OPENCC_PATH;opencc" ` diff --git a/wrapper/FreeBSD.sh b/wrapper/FreeBSD.sh index 5776e36..84c1849 100755 --- a/wrapper/FreeBSD.sh +++ b/wrapper/FreeBSD.sh @@ -2,6 +2,7 @@ pkg install python39 py39-requests py39-pip py39-lxml py39-pillow py39-cloudscra pip install pyinstaller pyinstaller --onefile Movie_Data_Capture.py --hidden-import ADC_function.py --hidden-import core.py \ --hidden-import "ImageProcessing.cnn" \ + --python-option u \ --add-data "$(python3.9 -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1):cloudscraper" \ --add-data "$(python3.9 -c 'import opencc as _; print(_.__path__[0])' | tail -n 1):opencc" \ --add-data "$(python3.9 -c 'import face_recognition_models as _; print(_.__path__[0])' | tail -n 1):face_recognition_models" \ diff --git a/wrapper/Linux.sh b/wrapper/Linux.sh index bd0cbf4..abb1a80 100755 --- a/wrapper/Linux.sh +++ b/wrapper/Linux.sh @@ -14,6 +14,7 @@ pip3 install -r requirements.txt pip3 install cloudscraper==1.2.52 pyinstaller --onefile Movie_Data_Capture.py --hidden-import ADC_function.py --hidden-import core.py \ --hidden-import "ImageProcessing.cnn" \ + --python-option u \ --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 "$(python3 -c 'import face_recognition_models as _; print(_.__path__[0])' | tail -n 1):face_recognition_models" \