A build helper script can be found at build/build.sh.
./build/build.sh./build/build.shpowershell -ExecutionPolicy ByPass -File .\build\build.ps1 or "C:\Program Files\Git\bin\bash.exe" ./build/build.shThe insider version can be built with ./build/build.sh -i on the insider branch.
You can try the latest version with the command ./build/build.sh -il but the patches might not be up to date.
The script build/build.sh provides several flags:
-i: build the Insiders version-l: build with latest version of Visual Studio Code-o: skip the build step-p: generate the packages/assets/installers-s: do not retrieve the source code of Visual Studio Code, it won't delete the existing buildTo 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:
cd /root/vscodium
./build/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:bionic-armhf bash
like
docker run -ti --volume=$(pwd):/root/vscodium --name=vscodium-build-agent vscodium/vscodium-linux-build-agent:bionic-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
./build/build.sh
# for the stable version
cd ./stores/snapcraft/stable
# for the insider version
cd ./stores/snapcraft/insider
# create the snap
snapcraft --use-lxd
# verify the snap
review-tools.snap-review --allow-classic codium*.snap
./build/build_<os>.sh, if a patch is failing then,./build/update_patches.shPress any key when the conflict have been resolved..., open vscode directory in VSCodium*.rej filesyarn watch./script/code.sh until everything is 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 is okgit diff > ../patches/<name>.patchTo run icons/build_icons.sh, you will need:
npm install png2icns -g)