2
0

build.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. set -ex
  3. if [[ "$SHOULD_BUILD" == "yes" ]]; then
  4. npm config set scripts-prepend-node-path true
  5. echo "MS_COMMIT: ${MS_COMMIT}"
  6. . prepare_vscode.sh
  7. cd vscode || exit
  8. yarn monaco-compile-check
  9. yarn valid-layers-check
  10. yarn gulp compile-build
  11. yarn gulp compile-extension-media
  12. yarn gulp compile-extensions-build
  13. yarn gulp minify-vscode
  14. if [[ "$OS_NAME" == "osx" ]]; then
  15. yarn gulp "vscode-darwin-${VSCODE_ARCH}-min-ci"
  16. elif [[ "$OS_NAME" == "windows" ]]; then
  17. cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
  18. yarn gulp "vscode-win32-${VSCODE_ARCH}-min-ci"
  19. yarn gulp "vscode-win32-${VSCODE_ARCH}-code-helper"
  20. yarn gulp "vscode-win32-${VSCODE_ARCH}-inno-updater"
  21. yarn gulp "vscode-win32-${VSCODE_ARCH}-archive"
  22. yarn gulp "vscode-win32-${VSCODE_ARCH}-system-setup"
  23. yarn gulp "vscode-win32-${VSCODE_ARCH}-user-setup"
  24. else # linux
  25. yarn gulp "vscode-linux-${VSCODE_ARCH}-min-ci"
  26. if [[ "$SKIP_LINUX_PACKAGES" != "True" ]]; then
  27. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-deb"
  28. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-rpm"
  29. . ../create_appimage.sh
  30. fi
  31. fi
  32. cd ..
  33. fi