mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-24 11:50:14 +10:00
doc: update build doc and add script for docker (#1204)
This commit is contained in:
29
build/build_docker.sh
Executable file
29
build/build_docker.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/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
|
||||||
@@ -6,9 +6,9 @@ rm -rf vscode*
|
|||||||
UNAME_ARCH=$( uname -m )
|
UNAME_ARCH=$( uname -m )
|
||||||
|
|
||||||
if [[ "${UNAME_ARCH}" == "arm64" ]]; then
|
if [[ "${UNAME_ARCH}" == "arm64" ]]; then
|
||||||
export VSCODE_ARCH="arm64"
|
export VSCODE_ARCH="arm64"
|
||||||
else
|
else
|
||||||
export VSCODE_ARCH="x64"
|
export VSCODE_ARCH="x64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
|
echo "-- VSCODE_ARCH: ${VSCODE_ARCH}"
|
||||||
|
|||||||
@@ -80,13 +80,13 @@ npm install -g yarn
|
|||||||
|
|
||||||
cd /root/vscodium
|
cd /root/vscodium
|
||||||
|
|
||||||
./get_repo.sh
|
. get_repo.sh
|
||||||
|
|
||||||
export SHOULD_BUILD=yes
|
export SHOULD_BUILD=yes
|
||||||
export OS_NAME=linux
|
export OS_NAME=linux
|
||||||
export VSCODE_ARCH=x64
|
export VSCODE_ARCH=x64
|
||||||
|
|
||||||
./build.sh
|
. build.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### <a id="build-docker-arm32"></a>ARM 32bits
|
### <a id="build-docker-arm32"></a>ARM 32bits
|
||||||
@@ -107,7 +107,7 @@ sudo apt-get install -y nodejs desktop-file-utils
|
|||||||
|
|
||||||
cd /root/vscodium
|
cd /root/vscodium
|
||||||
|
|
||||||
./get_repo.sh
|
. get_repo.sh
|
||||||
|
|
||||||
export SHOULD_BUILD=yes
|
export SHOULD_BUILD=yes
|
||||||
export OS_NAME=linux
|
export OS_NAME=linux
|
||||||
@@ -115,7 +115,7 @@ export VSCODE_ARCH=armhf
|
|||||||
export npm_config_arch=armv7l
|
export npm_config_arch=armv7l
|
||||||
export npm_config_force_process_config="true"
|
export npm_config_force_process_config="true"
|
||||||
|
|
||||||
./build.sh
|
. build.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## <a id="patch-update-process"></a>Patch Update Process
|
## <a id="patch-update-process"></a>Patch Update Process
|
||||||
|
|||||||
Reference in New Issue
Block a user