From b41635b951bd0a9f59795788e7383b90b4645b27 Mon Sep 17 00:00:00 2001 From: Pawel Borkar Date: Sun, 21 Feb 2021 10:39:32 +0530 Subject: [PATCH 1/8] Update the license year to 2021 --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index fa254b6..b2484aa 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2020 Peter Squicciarini +Copyright (c) 2021 Peter Squicciarini Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 6fba344a638c70ad98324769a5fbd78e27100a81 Mon Sep 17 00:00:00 2001 From: Pawel Borkar Date: Sun, 21 Feb 2021 10:40:44 +0530 Subject: [PATCH 2/8] Add hyperlink to the MIT license in the License section --- README.md | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 35c6c41..3552e89 100644 --- a/README.md +++ b/README.md @@ -19,18 +19,24 @@ **This is not a fork. This is a repository of scripts to automatically build Microsoft's `vscode` repository into freely-licensed binaries with a community-driven default configuration.** ## Table of Contents -- [Download/Install](#download-install) - - [Install with Brew](#install-with-brew) - - [Install with Windows Package Manager (WinGet)](#install-with-winget) - - [Install with Chocolatey](#install-with-choco) - - [Install with Scoop](#install-with-scoop) - - [Install with snap](#install-with-snap) - - [Install with Package Manager](#install-with-package-manager) - - [Install on Arch Linux](#install-on-arch-linux) - - [Flatpak Option](#flatpak) -- [Why Does This Exist](#why) -- [More Info](#more-info) -- [Supported OS](#supported-os) +- [Table of Contents](#table-of-contents) +- [Download/Install](#downloadinstall) + - [Install with Brew (Mac)](#install-with-brew-mac) + - [Install with Windows Package Manager (WinGet)](#install-with-windows-package-manager-winget) + - [Install with Chocolatey (Windows)](#install-with-chocolatey-windows) + - [Install with Scoop (Windows)](#install-with-scoop-windows) + - [Install with snap (Linux)](#install-with-snap-linux) + - [Install with Package Manager (Linux)](#install-with-package-manager-linux) + - [Install on Arch Linux](#install-on-arch-linux) + - [Flatpak Option (Linux)](#flatpak-option-linux) +- [Why Does This Exist](#why-does-this-exist) +- [More Info](#more-info) + - [Documentation](#documentation) + - [Extensions and the Marketplace](#extensions-and-the-marketplace) + - [How are the VSCodium binaries built?](#how-are-the-vscodium-binaries-built) +- [Supported OS](#supported-os) +- [Donate](#donate) +- [License](#license) ## Download/Install :tada: :tada: [Download latest release here](https://github.com/VSCodium/vscodium/releases) :tada: :tada: @@ -139,4 +145,4 @@ Special thanks to: - @jaredreich for the previous logo ## License -MIT +[MIT License](https://github.com/VSCodium/vscodium/blob/master/LICENSE). \ No newline at end of file From 9c2cc86935d6155d5d06f0c6c891a323aa090c42 Mon Sep 17 00:00:00 2001 From: Pawel Borkar Date: Sun, 21 Feb 2021 12:14:02 +0530 Subject: [PATCH 3/8] Update back to MIT from MIT License --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3552e89..8b74b5f 100644 --- a/README.md +++ b/README.md @@ -145,4 +145,4 @@ Special thanks to: - @jaredreich for the previous logo ## License -[MIT License](https://github.com/VSCodium/vscodium/blob/master/LICENSE). \ No newline at end of file +[MIT](https://github.com/VSCodium/vscodium/blob/master/LICENSE). \ No newline at end of file From 97a74cc61bb04e794119fe156a0e58e15c3075c7 Mon Sep 17 00:00:00 2001 From: Liwen Guo Date: Tue, 23 Feb 2021 11:17:17 +0100 Subject: [PATCH 4/8] Remove redundant `yarn postinstall` call Saves around 10 to 20 seconds in the build job. --- prepare_vscode.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/prepare_vscode.sh b/prepare_vscode.sh index 12fdb42..018899f 100755 --- a/prepare_vscode.sh +++ b/prepare_vscode.sh @@ -16,7 +16,6 @@ if [[ "$OS_NAME" == "osx" ]]; then npm_config_argv='{"original":["--ignore-optional"]}' yarn postinstall else CHILD_CONCURRENCY=1 yarn --frozen-lockfile - yarn postinstall fi mv product.json product.json.bak From 8f0532f4b6b1025a719bdefe73ad6409239533b6 Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Mon, 22 Feb 2021 21:48:59 +0100 Subject: [PATCH 5/8] supported platform update, fixes #648 * some minimal versions, along with the reason for it * arm64 macOS status * Windows arm64 * GNU/Linux * OS -> platforms --- README.md | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 35c6c41..fa4dc5f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ - [Flatpak Option](#flatpak) - [Why Does This Exist](#why) - [More Info](#more-info) -- [Supported OS](#supported-os) +- [Supported Platforms](#supported-platforms) ## Download/Install :tada: :tada: [Download latest release here](https://github.com/VSCodium/vscodium/releases) :tada: :tada: @@ -64,20 +64,20 @@ scoop bucket add extras scoop install vscodium ``` -#### Install with snap (Linux) +#### Install with snap (GNU/Linux) VSCodium is available in the [Snap Store](https://snapcraft.io/) as [Codium](https://snapcraft.io/codium), published by the [Snapcrafters](https://github.com/snapcrafters/codium) community. -If your Linux distribution has support for [snaps](https://snapcraft.io/docs/installing-snapd): +If your GNU/Linux distribution has support for [snaps](https://snapcraft.io/docs/installing-snapd): ```bash snap install codium ``` -#### Install with Package Manager (Linux) +#### Install with Package Manager (GNU/Linux) You can always install using the downloads (deb, rpm, tar) on the [releases page](https://github.com/VSCodium/vscodium/releases), but you can also install using your favorite package manager and get automatic updates. [@paulcarroty](https://github.com/paulcarroty) has set up a repository with instructions [here](https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo). Any issues installing VSCodium using your package manager should be directed to that repository's issue tracker. #### Install on Arch Linux VSCodium is available in [AUR](https://wiki.archlinux.org/index.php/Arch_User_Repository) as package [vscodium-bin](https://aur.archlinux.org/packages/vscodium-bin/), maintained by [@binex-dsk](https://github.com/binex-dsk). An alternative package [vscodium-git](https://aur.archlinux.org/packages/vscodium-git/), maintained by [@cedricroijakkers](https://github.com/cedricroijakkers), is also available should you wish to compile from source yourself. -#### Flatpak Option (Linux) +#### Flatpak Option (GNU/Linux) VSCodium is (unofficially) available as a Flatpak app [here](https://flathub.org/apps/details/com.vscodium.codium) and the build repo is [here](https://github.com/flathub/com.vscodium.codium). If your distribution has support for [flatpak](https://flathub.org), and you have enabled the [flathub repo](https://flatpak.org/setup/): ```bash flatpak install flathub com.vscodium.codium @@ -118,18 +118,21 @@ According to the VS Code Marketplace [Terms of Use](https://aka.ms/vsmarketplace Please note that some Visual Studio Code extensions have licenses that restrict their use to the official Visual Studio Code builds and therefore do not work with VSCodium. See [this note](https://github.com/VSCodium/vscodium/blob/master/DOCS.md#proprietary-debugging-tools) on the Docs page for what's been found so far and possible workarounds. ### How are the VSCodium binaries built? -If you would like to see the commands we run to build `vscode` into VSCodium binaries, have a look at the workflow files in `.github/workflow` (for Linux and macOS builds) and the `win32-build.yml` file (for Windows builds). These build files call all the other scripts in the repo. If you find something that doesn't make sense, feel free to ask about it [on Gitter](https://gitter.im/VSCodium/Lobby). +If you would like to see the commands we run to build `vscode` into VSCodium binaries, have a look at the workflow files in `.github/workflow` (for GNU/Linux and macOS builds) and the `win32-build.yml` file (for Windows builds). These build files call all the other scripts in the repo. If you find something that doesn't make sense, feel free to ask about it [on Gitter](https://gitter.im/VSCodium/Lobby). The builds are run every day, but exit early if there isn't a new release from Microsoft. -## Supported OS -- [x] macOS (`zip`, `dmg`) -- [x] Linux x64 (`deb`, `rpm`, `AppImage`, `tar.gz`) -- [x] Linux x86 (`deb`, `rpm`, `tar.gz`) ([up to v1.35.1](https://code.visualstudio.com/updates/v1_36#_linux-32bit-support-ends)) -- [x] Linux arm64 (`deb`, `tar.gz`) -- [x] Linux armhf (`deb`, `tar.gz`) -- [x] Windows x64 -- [x] Windows x86 +## Supported Platforms +The minimal version is limitted by the core component Electron, you may want to check its [supported platform list](https://www.electronjs.org/docs/tutorial/support#supported-platforms). +- [x] macOS (`zip`, `dmg`) OS X 10.10 or newer x64 +- [x] macOS (`zip`, `dmg`) macOS 11.0 or newer arm64 via x64 emulation, see [status issue](https://github.com/VSCodium/vscodium/issues/597) +- [x] GNU/Linux x64 (`deb`, `rpm`, `AppImage`, `tar.gz`) +- [x] GNU/Linux x86 (`deb`, `rpm`, `tar.gz`) ([up to v1.35.1](https://code.visualstudio.com/updates/v1_36#_linux-32bit-support-ends)) +- [x] GNU/Linux arm64 (`deb`, `tar.gz`) +- [x] GNU/Linux armhf (`deb`, `tar.gz`) +- [x] Windows 7 or newer x64 +- [x] Windows 7 or newer x86 +- [x] Windows 10 arm64 ## Donate If you would like to support the development of VSCodium, feel free to send BTC to `3PgjE95yzBDTrSPxPiqoxSgZFuKPPAix1N`. From 0b282757cea20600f358451d0cdd1616909c3f81 Mon Sep 17 00:00:00 2001 From: Pawel Borkar <36134699+PawelBorkar@users.noreply.github.com> Date: Fri, 26 Feb 2021 13:01:11 +0530 Subject: [PATCH 6/8] Update README.md --- README.md | 32 +++++++++++++------------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 8b74b5f..cebfb8e 100644 --- a/README.md +++ b/README.md @@ -19,24 +19,18 @@ **This is not a fork. This is a repository of scripts to automatically build Microsoft's `vscode` repository into freely-licensed binaries with a community-driven default configuration.** ## Table of Contents -- [Table of Contents](#table-of-contents) -- [Download/Install](#downloadinstall) - - [Install with Brew (Mac)](#install-with-brew-mac) - - [Install with Windows Package Manager (WinGet)](#install-with-windows-package-manager-winget) - - [Install with Chocolatey (Windows)](#install-with-chocolatey-windows) - - [Install with Scoop (Windows)](#install-with-scoop-windows) - - [Install with snap (Linux)](#install-with-snap-linux) - - [Install with Package Manager (Linux)](#install-with-package-manager-linux) - - [Install on Arch Linux](#install-on-arch-linux) - - [Flatpak Option (Linux)](#flatpak-option-linux) -- [Why Does This Exist](#why-does-this-exist) -- [More Info](#more-info) - - [Documentation](#documentation) - - [Extensions and the Marketplace](#extensions-and-the-marketplace) - - [How are the VSCodium binaries built?](#how-are-the-vscodium-binaries-built) -- [Supported OS](#supported-os) -- [Donate](#donate) -- [License](#license) +- [Download/Install](#download-install) + - [Install with Brew](#install-with-brew) + - [Install with Windows Package Manager (WinGet)](#install-with-winget) + - [Install with Chocolatey](#install-with-choco) + - [Install with Scoop](#install-with-scoop) + - [Install with snap](#install-with-snap) + - [Install with Package Manager](#install-with-package-manager) + - [Install on Arch Linux](#install-on-arch-linux) + - [Flatpak Option](#flatpak) +- [Why Does This Exist](#why) +- [More Info](#more-info) +- [Supported OS](#supported-os) ## Download/Install :tada: :tada: [Download latest release here](https://github.com/VSCodium/vscodium/releases) :tada: :tada: @@ -145,4 +139,4 @@ Special thanks to: - @jaredreich for the previous logo ## License -[MIT](https://github.com/VSCodium/vscodium/blob/master/LICENSE). \ No newline at end of file +[MIT](https://github.com/VSCodium/vscodium/blob/master/LICENSE) From 52d63a9a7d5da5696ffa4c85c6f8b39137fce53c Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Sun, 28 Feb 2021 21:51:06 +0300 Subject: [PATCH 7/8] Fix a typo (VSCode -> VS Code) in README.md Repository description and "Extensions and the Marketplace" `README.md` paragraph refers to the upstream editor as "VS Code", while other parts of the README refer to it as "VSCode". Upstream refers to it as "VS Code", this commit standardizes on that specific spelling (e.g. see https://github.com/microsoft/vscode#related-projects). --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 35c6c41..24fe329 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
VSCodium Logo

VSCodium

-

Free/Libre Open Source Software Binaries of VSCode

+

Free/Libre Open Source Software Binaries of VS Code

@@ -86,7 +86,7 @@ flatpak run com.vscodium.codium ``` ## Why Does This Exist -This repository contains build files to generate free release binaries of Microsoft's VSCode. When we speak of "free software", we're talking about freedom, not price. +This repository contains build files to generate free release binaries of Microsoft's VS Code. When we speak of "free software", we're talking about freedom, not price. Microsoft's releases of Visual Studio Code are licensed under [this not-FLOSS license](https://code.visualstudio.com/license) and contain telemetry/tracking. According to [this comment](https://github.com/Microsoft/vscode/issues/60#issuecomment-161792005) from a Visual Studio Code maintainer: @@ -96,7 +96,7 @@ Microsoft's releases of Visual Studio Code are licensed under [this not-FLOSS li This repo exists so that you don't have to download+build from source. The build scripts in this repo clone Microsoft's vscode repo, run the build commands, and upload the resulting binaries to [GitHub releases](https://github.com/VSCodium/vscodium/releases). __These binaries are licensed under the MIT license. Telemetry is disabled.__ -If you want to build from source yourself, head over to [Microsoft's vscode repo](https://github.com/Microsoft/vscode) and follow their [instructions](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run). This repo exists to make it easier to get the latest version of MIT-licensed VSCode. +If you want to build from source yourself, head over to [Microsoft's vscode repo](https://github.com/Microsoft/vscode) and follow their [instructions](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run). This repo exists to make it easier to get the latest version of MIT-licensed VS Code. Microsoft's build process (which we are running to build the binaries) does download additional files. This was brought up in [Microsoft/vscode#49159](https://github.com/Microsoft/vscode/issues/49159) and [Microsoft/vscode#45978](https://github.com/Microsoft/vscode/issues/45978). These are the packages downloaded during build: From 241d311adf8652bc755f80bec9f14aeaa737eb83 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Tue, 2 Mar 2021 19:33:25 +0100 Subject: [PATCH 8/8] Centos7 isn't supported by Electron 11 --- patches/fix-rpm-spec.patch | 16 ++++++++++++++++ patches/no-replace-product-json.patch | 8 -------- prepare_vscode.sh | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 patches/fix-rpm-spec.patch delete mode 100644 patches/no-replace-product-json.patch diff --git a/patches/fix-rpm-spec.patch b/patches/fix-rpm-spec.patch new file mode 100644 index 0000000..27747ce --- /dev/null +++ b/patches/fix-rpm-spec.patch @@ -0,0 +1,16 @@ +--- vscode/resources/linux/rpm/code.spec.template 2021-03-02 19:26:53.000000000 +0100 ++++ vscode/resources/linux/rpm/code.spec.template.new 2021-03-02 19:28:12.000000000 +0100 +@@ -1,6 +1,6 @@ + Name: @@NAME@@ + Version: @@VERSION@@ +-Release: @@RELEASE@@.el7 ++Release: @@RELEASE@@.el8 + Summary: Code editing. Redefined. + Group: Development/Tools + Vendor: Microsoft Corporation +@@ -69,3 +69,5 @@ + /usr/share/pixmaps/@@ICON@@.png + /usr/share/bash-completion/completions/@@NAME@@ + /usr/share/zsh/site-functions/_@@NAME@@ ++ +++%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json diff --git a/patches/no-replace-product-json.patch b/patches/no-replace-product-json.patch deleted file mode 100644 index 91bee64..0000000 --- a/patches/no-replace-product-json.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- vscode/resources/linux/rpm/code.spec.template 2020-11-15 15:28:20.179070106 +0800 -+++ vscode/resources/linux/rpm/code.spec.template.new 2020-11-15 15:25:39.269000000 +0800 -@@ -69,3 +69,5 @@ - /usr/share/pixmaps/@@ICON@@.png - /usr/share/bash-completion/completions/@@NAME@@ - /usr/share/zsh/site-functions/_@@NAME@@ -+ -+%config(noreplace) /usr/share/@@NAME@@/resources/app/product.json diff --git a/prepare_vscode.sh b/prepare_vscode.sh index 12fdb42..50f04fd 100755 --- a/prepare_vscode.sh +++ b/prepare_vscode.sh @@ -9,7 +9,7 @@ cd vscode || exit # apply patches patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patches/update-cache-path.patch -patch -u resources/linux/rpm/code.spec.template -i ../patches/no-replace-product-json.patch +patch -u resources/linux/rpm/code.spec.template -i ../patches/fix-rpm-spec.patch if [[ "$OS_NAME" == "osx" ]]; then CHILD_CONCURRENCY=1 yarn --frozen-lockfile --ignore-optional