build_docker.sh 581 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash
  2. exists() { type -t "$1" > /dev/null 2>&1; }
  3. rm -rf VSCode*
  4. rm -rf vscode*
  5. if ! exists yarn; then
  6. curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
  7. sudo apt-get install -y nodejs desktop-file-utils
  8. npm install -g yarn
  9. fi
  10. UNAME_ARCH=$( uname -m )
  11. if [[ "${UNAME_ARCH}" == "x86_64" ]]; then
  12. export VSCODE_ARCH="x64"
  13. else
  14. export npm_config_arch=armv7l
  15. export npm_config_force_process_config="true"
  16. export VSCODE_ARCH="armhf"
  17. fi
  18. echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
  19. . get_repo.sh
  20. SHOULD_BUILD=yes CI_BUILD=no OS_NAME=linux . build.sh