buildRelease.sh 807 B

12345678910111213141516171819
  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. chmod 0777 ./release/**/adb && \
  9. chmod 0777 ./release/**/miwatchkleaner2-* && \
  10. chmod +x ./release/**/adb && \
  11. chmod +x ./release/**/miwatchkleaner2-* && \
  12. cd release/MacOS/ && \
  13. tar -pcvzf miwatchkleaner.$buildNum-macos.tar.gz adb data/ miwatchkleaner2-macos-x64 && \
  14. cd .. && \
  15. cd Linux/ && \
  16. tar -pcvzf miwatchkleaner.$buildNum-Linux.tar.gz adb data/ miwatchkleaner2-linux-x64 && \
  17. cd .. && \
  18. cd Windows/ && \
  19. zip -r miwatchkleaner.$buildNum-win.zip adb.exe AdbWinApi.dll AdbWinUsbApi.dll data/ miwatchkleaner2-win-x86.exe