2021-06-30 11:24:06 +03:00
|
|
|
# Build
|
|
|
|
|
|
|
|
## Table of Contents
|
|
|
|
|
|
|
|
- [Dependencies](#dependencies)
|
|
|
|
- [Linux](#dependencies-linux)
|
|
|
|
- [MacOS](#dependencies-macos)
|
|
|
|
- [Windows](#dependencies-windows)
|
|
|
|
- [Build Scripts](#build-scripts)
|
|
|
|
- [Build in Docker](#build-docker)
|
|
|
|
|
|
|
|
## <a id="dependencies"></a>Dependencies
|
|
|
|
|
2021-07-23 10:48:52 +03:00
|
|
|
- node 14
|
2021-06-30 11:24:06 +03:00
|
|
|
- yarn
|
|
|
|
- jq
|
2021-08-23 06:05:01 +03:00
|
|
|
- git
|
2021-06-30 11:24:06 +03:00
|
|
|
|
|
|
|
### <a id="dependencies-linux"></a>Linux
|
|
|
|
|
|
|
|
- libx11-dev
|
|
|
|
- libxkbfile-dev
|
|
|
|
- libsecret-1-dev
|
|
|
|
- fakeroot
|
|
|
|
- rpm
|
2021-07-23 10:48:52 +03:00
|
|
|
- rpmbuild
|
|
|
|
- dpkg
|
2021-10-28 04:37:44 +03:00
|
|
|
- python (can't be just python3, can't be user alias)
|
|
|
|
- libsecret-1-dev
|
|
|
|
- imagemagick
|
2021-06-30 11:24:06 +03:00
|
|
|
|
|
|
|
### <a id="dependencies-macos"></a>MacOS
|
|
|
|
|
|
|
|
### <a id="dependencies-windows"></a>Windows
|
|
|
|
|
|
|
|
- powershell
|
|
|
|
- sed
|
2021-09-09 02:38:07 +03:00
|
|
|
- 7z
|
|
|
|
- [WiX Toolset](http://wixtoolset.org/releases/)
|
2021-06-30 11:24:06 +03:00
|
|
|
|
|
|
|
## <a id="build-scripts"></a>Build Scripts
|
|
|
|
|
|
|
|
Each platform has its build helper script in the directory `build`.
|
|
|
|
|
|
|
|
- Linux: `./build/build_linux.sh`
|
2021-08-23 06:05:01 +03:00
|
|
|
- MacOS: `./build/build_macos.sh`
|
2021-06-30 11:24:06 +03:00
|
|
|
- Windows: `powershell -ExecutionPolicy ByPass -File .\build\build_windows.ps1`
|
|
|
|
|
|
|
|
## <a id="build-docker"></a>Build in Docker
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
|
|
|
When inside the container, you can use the following commands to build:
|
|
|
|
```
|
2021-07-23 10:48:52 +03:00
|
|
|
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
2021-07-26 02:15:55 +03:00
|
|
|
sudo apt-get install -y nodejs desktop-file-utils
|
2021-06-30 11:24:06 +03:00
|
|
|
|
|
|
|
npm install -g yarn
|
|
|
|
|
|
|
|
git clone https://github.com/VSCodium/vscodium.git
|
|
|
|
|
|
|
|
cd vscodium
|
|
|
|
|
|
|
|
./get_repo.sh
|
|
|
|
|
|
|
|
export SHOULD_BUILD=yes
|
|
|
|
export OS_NAME=linux
|
|
|
|
export VSCODE_ARCH=x64
|
|
|
|
|
|
|
|
./build.sh
|
2021-10-28 04:37:44 +03:00
|
|
|
```
|