build.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/bash
  2. set -ex
  3. if [[ "$SHOULD_BUILD" == "yes" ]]; then
  4. npm config set scripts-prepend-node-path true
  5. echo "LATEST_MS_COMMIT: ${LATEST_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-extensions-build
  12. yarn gulp minify-vscode
  13. if [[ "$OS_NAME" == "osx" ]]; then
  14. yarn gulp "vscode-darwin-${VSCODE_ARCH}-min-ci"
  15. elif [[ "$OS_NAME" == "windows" ]]; then
  16. cp LICENSE.txt LICENSE.rtf # windows build expects rtf license
  17. yarn gulp "vscode-win32-${VSCODE_ARCH}-min-ci"
  18. yarn gulp "vscode-win32-${VSCODE_ARCH}-code-helper"
  19. yarn gulp "vscode-win32-${VSCODE_ARCH}-inno-updater"
  20. yarn gulp "vscode-win32-${VSCODE_ARCH}-archive"
  21. yarn gulp "vscode-win32-${VSCODE_ARCH}-system-setup"
  22. yarn gulp "vscode-win32-${VSCODE_ARCH}-user-setup"
  23. else # linux
  24. yarn gulp "vscode-linux-${VSCODE_ARCH}-min-ci"
  25. if [[ "$SKIP_LINUX_PACKAGES" != "True" ]]; then
  26. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-deb"
  27. yarn gulp "vscode-linux-${VSCODE_ARCH}-build-rpm"
  28. . ../create_appimage.sh
  29. fi
  30. fi
  31. cd ..
  32. fi