mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
3.0 KiB
3.0 KiB
How to build VSCodium
Table of Contents
Dependencies
- node 20.14
- jq
- git
- python3 3.11
Linux
- gcc
- g++
- make
- pkg-config
- libx11-dev
- libxkbfile-dev
- libsecret-1-dev
- libkrb5-dev
- fakeroot
- rpm
- rpmbuild
- dpkg
- imagemagick (for AppImage)
- snapcraft
MacOS
Windows
- powershell
- sed
- 7z
- WiX Toolset
- 'Tools for Native Modules' from the official Node.js installer
Build Scripts
A build helper script can be found at dev/build.sh.
- Linux:
./dev/build.sh - MacOS:
./dev/build.sh - Windows:
powershell -ExecutionPolicy ByPass -File .\dev\build.ps1or"C:\Program Files\Git\bin\bash.exe" ./dev/build.sh
Insider
The insider version can be built with ./dev/build.sh -i on the insider branch.
You can try the latest version with the command ./dev/build.sh -il but the patches might not be up to date.
Flags
The script dev/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 build
Build Snap
# 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
Patch Update Process
Semi-Automated
- run
./dev/build.sh, if a patch is failing then, - run
./dev/update_patches.sh - when the script pauses at
Press any key when the conflict have been resolved..., openvscodedirectory in VSCodium - fix all the
*.rejfiles - run
npm run watch - run
./script/code.shuntil everything is ok - press any key to continue the script
update_patches.sh
Manual
- run
./dev/build.sh, if a patch is failing then, - open
vscodedirectory in VSCodium - revert all changes
- run
git apply --reject ../patches/<name>.patch - fix all the
*.rejfiles - run
npm run watch - run
./script/code.shuntil everything is ok - run
git diff > ../patches/<name>.patch
icons/build_icons.sh
To run icons/build_icons.sh, you will need:
- imagemagick
- png2icns (
npm install png2icns -g) - librsvg