diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8e78cd7..2045875 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,11 +49,11 @@ jobs: run: | pyinstaller \ --onefile Movie_Data_Capture.py \ - --python-option u \ - --hidden-import "ImageProcessing.cnn" \ - --add-data "$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1):cloudscraper" \ - --add-data "$(python -c 'import opencc as _; print(_.__path__[0])' | tail -n 1):opencc" \ - --add-data "$(python -c 'import face_recognition_models as _; print(_.__path__[0])' | tail -n 1):face_recognition_models" \ + --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:." \ @@ -62,13 +62,13 @@ jobs: run: | pyinstaller ` --onefile Movie_Data_Capture.py ` - --python-option u ` - --hidden-import "ImageProcessing.cnn" ` - --add-data "$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1);cloudscraper" ` - --add-data "$(python -c 'import opencc as _; print(_.__path__[0])' | tail -n 1);opencc" ` - --add-data "$(python -c 'import face_recognition_models as _; print(_.__path__[0])' | tail -n 1);face_recognition_models" ` - --add-data "Img;Img" ` - --add-data "config.ini;." ` + --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:." ` - name: Copy config.ini run: |