mirror of
https://github.com/VSCodium/vscodium
synced 2024-08-27 21:09:56 +00:00
2.2 KiB
2.2 KiB
Build
Table of Contents
Dependencies
- node 16
- yarn
- jq
- git
Linux
- GCC
- make
- pkg-config
- libx11-dev
- libxkbfile-dev
- libsecret-1-dev
- fakeroot
- rpm
- rpmbuild
- dpkg
- python3
- imagemagick (for AppImage)
MacOS
Windows
- powershell
- sed
- 7z
- WiX Toolset
- python3
- 'Tools for Native Modules' from official Node.js installer
Build Scripts
Each platform has its build helper script in the directory build
.
- Linux:
./build/build_linux.sh
- MacOS:
./build/build_macos.sh
- Windows:
powershell -ExecutionPolicy ByPass -File .\build\build_windows.ps1
Build in Docker
To build for Linux, you can alternatively build VSCodium in docker
X64
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
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
ARM 32bits
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
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