build.sh 564 B

123456789101112131415161718
  1. #!/bin/bash
  2. if [[ "$SHOULD_BUILD" == "yes" ]]; then
  3. cd vscode
  4. yarn
  5. mv product.json product.json.bak
  6. cat product.json.bak | jq 'setpath(["extensionsGallery"]; {"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", "cacheUrl": "https://vscode.blob.core.windows.net/gallery/index", "itemUrl": "https://marketplace.visualstudio.com/items"})' > product.json
  7. cat product.json
  8. export NODE_ENV=production
  9. if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
  10. npx gulp vscode-darwin-min
  11. else
  12. npx gulp vscode-linux-x64-min
  13. fi
  14. cd ..
  15. fi