buildRelease.sh 1.0 KB

12345678910111213141516171819202122
  1. echo What is build number && \
  2. read buildNum && \
  3. pkg package.json && \
  4. mv miwatchkleaner-* ./release && \
  5. mv ./release/miwatchkleaner-win-* ./release/Windows && \
  6. mv ./release/miwatchkleaner-linux-* ./release/Linux && \
  7. mv ./release/miwatchkleaner-macos-* ./release/MacOs && \
  8. cp ./data/xiaomiPackageRemovalList.json ./release/Windows/data/ && \
  9. cp ./data/xiaomiPackageRemovalList.json ./release/MacOS/data/ && \
  10. cp ./data/xiaomiPackageRemovalList.json ./release/Linux/data/ && \
  11. chmod 0777 ./release/**/adb && \
  12. chmod 0777 ./release/**/miwatchkleaner-* && \
  13. chmod +x ./release/**/adb && \
  14. chmod +x ./release/**/miwatchkleaner-* && \
  15. cd release/MacOS/ && \
  16. tar -pcvzf miwatchkleaner.$buildNum-macos.tar.gz adb data/ my_apk/ miwatchkleaner-macos-x64 && \
  17. cd .. && \
  18. cd Linux/ && \
  19. tar -pcvzf miwatchkleaner.$buildNum-Linux.tar.gz adb data/ my_apk/ miwatchkleaner-linux-x64 && \
  20. cd .. && \
  21. cd Windows/ && \
  22. zip -r miwatchkleaner.$buildNum-win.zip adb.exe AdbWinApi.dll AdbWinUsbApi.dll data/ my_apk/ miwatchkleaner-win-x86.exe