You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. #!/bin/bash
  2. # This script is used to build.md the package for Linux 64-bit.
  3. rm -r out
  4. cd ../Extension/manifest_v3
  5. node package.js
  6. cd ../../ElectronJS
  7. npm run package
  8. mv out/EasySpider-linux-x64 out/EasySpider
  9. rm -rf out/EasySpider/resources/app/chrome_win64
  10. rm -rf out/EasySpider/resources/app/chromedrivers
  11. rm -rf out/EasySpider/resources/app/Data
  12. rm -rf out/EasySpider/resources/app/.idea
  13. rm -rf out/EasySpider/resources/app/tasks
  14. rm -rf out/EasySpider/resources/app/execution_instances
  15. rm -rf out/EasySpider/resources/app/user_data
  16. rm -rf ../.temp_to_pub/EasySpider_Linux_x64/EasySpider
  17. rm out/EasySpider/resources/app/vs_BuildTools.exe
  18. mv out/EasySpider ../.temp_to_pub/EasySpider_Linux_x64/EasySpider
  19. rm -rf ../.temp_to_pub/EasySpider_Linux_x64/Code
  20. mkdir ../.temp_to_pub/EasySpider_Linux_x64/Code
  21. cp ../ExecuteStage/easyspider_executestage.py ../.temp_to_pub/EasySpider_Linux_x64/Code
  22. cp ../ExecuteStage/myChrome.py ../.temp_to_pub/EasySpider_Linux_x64/Code
  23. cp ../ExecuteStage/utils.py ../.temp_to_pub/EasySpider_Linux_x64/Code
  24. cp ../ExecuteStage/requirements.txt ../.temp_to_pub/EasySpider_Linux_x64/Code
  25. cp -Rf ../ExecuteStage/undetected_chromedriver_ES ../.temp_to_pub/EasySpider_Linux_x64/Code
  26. chmod 777 ../.temp_to_pub/EasySpider_Linux_x64/easy-spider.sh
  27. rm -rf ../.temp_to_pub/EasySpider_Linux_x64/user_data
  28. rm -rf ../.temp_to_pub/EasySpider_Linux_x64/execution_instances
  29. mkdir ../.temp_to_pub/EasySpider_Linux_x64/execution_instances
  30. rm -rf ../.temp_to_pub/EasySpider_Linux_x64/Data
  31. mkdir ../.temp_to_pub/EasySpider_Linux_x64/Data
  32. rm EasySpider_zh.crx
  33. rm EasySpider_en.crx