mirror of
https://github.com/VSCodium/vscodium
synced 2024-10-12 05:13:33 +00:00
add a loop to apply patches (#779)
This commit is contained in:
parent
53b071366b
commit
8187c7fd7f
|
@ -8,10 +8,15 @@ cd vscode || exit
|
||||||
../update_settings.sh
|
../update_settings.sh
|
||||||
|
|
||||||
# apply patches
|
# apply patches
|
||||||
patch -u src/vs/platform/update/electron-main/updateService.win32.ts -i ../patches/update-cache-path.patch
|
for file in ../patches/*.patch; do
|
||||||
patch -u resources/linux/rpm/code.spec.template -i ../patches/fix-rpm-spec.patch
|
if [ -f "$file" ]; then
|
||||||
git apply --ignore-whitespace ../patches/binary-name.patch
|
echo applying patch: $file;
|
||||||
git apply --ignore-whitespace ../patches/custom-gallery.patch
|
if ! git apply --ignore-whitespace $file; then
|
||||||
|
echo failed to apply patch $file 1>&2
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
for file in ../patches/user/*.patch; do
|
for file in ../patches/user/*.patch; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
echo applying user patch: $file;
|
echo applying user patch: $file;
|
||||||
|
|
Loading…
Reference in a new issue