buildRelease.sh 1.1 KB

12345678910111213141516171819202122232425
  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. cp -rf ./lang/ ./release/Windows/ && \
  12. cp -rf ./lang/ ./release/MacOS/ && \
  13. cp -rf ./lang/ ./release/Linux/ && \
  14. chmod 0777 ./release/**/adb && \
  15. chmod 0777 ./release/**/miwatchkleaner-* && \
  16. chmod +x ./release/**/adb && \
  17. chmod +x ./release/**/miwatchkleaner-* && \
  18. cd release/MacOS/ && \
  19. tar -pcvzf miwatchkleaner.$buildNum-macos.tar.gz adb data/ my_apk/ lang/ miwatchkleaner-macos-x64 && \
  20. cd .. && \
  21. cd Linux/ && \
  22. tar -pcvzf miwatchkleaner.$buildNum-Linux.tar.gz adb data/ my_apk/ lang/ miwatchkleaner-linux-x64 && \
  23. cd .. && \
  24. cd Windows/ && \
  25. zip -r miwatchkleaner.$buildNum-win.zip adb.exe AdbWinApi.dll AdbWinUsbApi.dll data/ my_apk/ lang/ miwatchkleaner-win-x86.exe