create_zip.sh 549 B

12345678910111213141516171819
  1. #!/bin/bash
  2. if [[ "$SHOULD_BUILD" == "yes" ]]; then
  3. if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  4. cd VSCode-darwin
  5. zip -r -X -y ../VSCodium-darwin-${LATEST_MS_TAG}.zip ./*.app
  6. elif [[ "$BUILDARCH" == "ia32" ]]; then
  7. cd VSCode-linux-ia32
  8. tar czf ../VSCodium-linux-ia32-${LATEST_MS_TAG}.tar.gz .
  9. elif [[ "$BUILDARCH" == "arm64" ]]; then
  10. cd VSCode-linux-arm64
  11. tar czf ../VSCodium-linux-arm64-${LATEST_MS_TAG}.tar.gz .
  12. else
  13. cd VSCode-linux-x64
  14. tar czf ../VSCodium-linux-x64-${LATEST_MS_TAG}.tar.gz .
  15. fi
  16. cd ..
  17. fi