mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-12-24 01:12:33 +03:00
30 lines
581 B
Bash
Executable File
30 lines
581 B
Bash
Executable File
#!/bin/bash
|
|
|
|
exists() { type -t "$1" > /dev/null 2>&1; }
|
|
|
|
rm -rf VSCode*
|
|
rm -rf vscode*
|
|
|
|
if ! exists yarn; then
|
|
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
|
|
sudo apt-get install -y nodejs desktop-file-utils
|
|
|
|
npm install -g yarn
|
|
fi
|
|
|
|
UNAME_ARCH=$( uname -m )
|
|
|
|
if [[ "${UNAME_ARCH}" == "x86_64" ]]; then
|
|
export VSCODE_ARCH="x64"
|
|
else
|
|
export npm_config_arch=armv7l
|
|
export npm_config_force_process_config="true"
|
|
export VSCODE_ARCH="armhf"
|
|
fi
|
|
|
|
echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
|
|
|
|
. get_repo.sh
|
|
|
|
SHOULD_BUILD=yes CI_BUILD=no OS_NAME=linux . build.sh
|