buildRelease.sh 971 B

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