create_zip.sh 402 B

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