generateExecutable_Macos.sh 1.2 KB

1234567891011121314151617
  1. # 先打包一个不带ddddocr和pandas的版本,然后再打包一个带的版本,不带ddddocr和pandas的版本运行速度会快很多
  2. rm -r build
  3. rm -r dist
  4. pyinstaller -F --icon=favicon.ico easyspider_executestage.py --exclude-module ddddocr --exclude-module onnxruntime --exclude-module onnx --exclude-module onnxruntime_pybind11_state.so --exclude-module pillow --exclude-module pandas --exclude-module numpy --exclude-module scipy --exclude-module sklearn
  5. rm ../.temp_to_pub/EasySpider_MacOS/easyspider_executestage
  6. cp dist/easyspider_executestage ../.temp_to_pub/EasySpider_MacOS/easyspider_executestage
  7. # mv dist/easyspider_executestage ../ElectronJS/easyspider_executestage
  8. echo "With ddddocr and pandas"
  9. # # 打包带ddddocr和pandas的版本
  10. rm -r build
  11. rm -r dist
  12. pyinstaller -F --icon=favicon.ico --add-data "/Users/naibo/anaconda3/lib/python3.11/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.so:onnxruntime/capi" --add-data "/Users/naibo/anaconda3/lib/python3.11/site-packages/ddddocr/common_old.onnx:ddddocr" easyspider_executestage.py
  13. rm ../.temp_to_pub/EasySpider_MacOS/easyspider_executestage_full
  14. cp dist/easyspider_executestage ../.temp_to_pub/EasySpider_MacOS/easyspider_executestage_full