Each platform has its build helper script in the directory build
.
./build/build_linux.sh
./build/build_macos.sh
powershell -ExecutionPolicy ByPass -File .\build\build_windows.ps1
To build for Linux, you can alternatively build VSCodium in docker
Firstly, create the container with:
docker run -ti --volume=<local vscodium source>:/root/vscodium --name=vscodium-build-agent vscodium/vscodium-linux-build-agent:bionic-x64 bash
like
docker run -ti --volume=$(pwd):/root/vscodium --name=vscodium-build-agent vscodium/vscodium-linux-build-agent:bionic-x64 bash
When inside the container, you can use the following commands to build:
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
cd /root/vscodium
. get_repo.sh
export SHOULD_BUILD=yes
export OS_NAME=linux
export VSCODE_ARCH=x64
. build.sh
Firstly, create the container with:
docker run -ti --volume=<local vscodium source>:/root/vscodium --name=vscodium-build-agent vscodium/vscodium-linux-build-agent:stretch-armhf bash
like
docker run -ti --volume=$(pwd):/root/vscodium --name=vscodium-build-agent vscodium/vscodium-linux-build-agent:stretch-armhf bash
When inside the container, you can use the following commands to build:
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs desktop-file-utils
cd /root/vscodium
. get_repo.sh
export SHOULD_BUILD=yes
export OS_NAME=linux
export VSCODE_ARCH=armhf
export npm_config_arch=armv7l
export npm_config_force_process_config="true"
. build.sh
./build/build_<os>.sh
, if a patch is failing then,./build/update_patches.sh
Press any key when the conflict have been resolved...
, open vscode
directory in VSCodium*.rej
filesyarn watch
./script/code.sh
until everything okupdate_patches.sh
./build/build_<os>.sh
, if a patch is failing then,vscode
directory in VSCodiumgit apply --reject ../patches/<name>.patch
*.rej
filesyarn watch
./script/code.sh
until everything okgit diff > ../patches/<name>.patch