Add ability to apply user specific patches to vscode source

This commit is contained in:
Swinder Pal Singh Juneja 2021-06-21 08:49:41 +05:30
parent 8bb2491be1
commit 64e101b963
2 changed files with 13 additions and 4 deletions

1
patches/user/readme.txt Normal file
View File

@ -0,0 +1 @@
store user patches at location patches/user and those will be applied to vscode source git by the scripts

View File

@ -12,6 +12,14 @@ patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patch
patch -u resources/linux/rpm/code.spec.template -i ../patches/fix-rpm-spec.patch
git apply --ignore-whitespace ../patches/binary-name.patch
git apply --ignore-whitespace ../patches/custom-gallery.patch
for file in ../patches/user/*.patch; do
if [ -f "$file" ]; then
echo applying user patch: $file;
if ! git apply --ignore-whitespace $file; then
echo failed to apply patch $file 1>&2
fi
fi
done
if [[ "$OS_NAME" == "osx" ]]; then
CHILD_CONCURRENCY=1 yarn --frozen-lockfile --ignore-optional