build.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. . ../build/windows/rtf/make.sh
  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. if [[ "${VSCODE_ARCH}" == "ia32" || "${VSCODE_ARCH}" == "x64" ]]; then
  25. . ../build/windows/msi/build.sh
  26. . ../build/windows/msi/build-updates-disabled.sh
  27. fi
  28. else # linux
  29. yarn gulp "vscode-linux-${VSCODE_ARCH}-min-ci"
  30. if [[ "$SKIP_LINUX_PACKAGES" != "True" ]]; then
  31. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-deb"
  32. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-rpm"
  33. . ../build/linux/appimage/build.sh
  34. fi
  35. fi
  36. cd ..
  37. fi