Browse Source

build(linux): allows patch per arch for reh

Baptiste Augrain 7 tháng trước cách đây
mục cha
commit
e8abb85f36
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      package_linux_reh.sh

+ 12 - 0
package_linux_reh.sh

@@ -92,6 +92,18 @@ if [[ -d "../patches/linux/reh/" ]]; then
   done
 fi
 
+if [[ -d "../patches/linux/reh/${VSCODE_ARCH}/" ]]; then
+  for file in "../patches/linux/reh/${VSCODE_ARCH}/"*.patch; do
+    if [[ -f "${file}" ]]; then
+      echo applying patch: "${file}";
+      if ! git apply --ignore-whitespace "${file}"; then
+        echo failed to apply patch "${file}" >&2
+        exit 1
+      fi
+    fi
+  done
+fi
+
 if [[ -n "${USE_GNUPP2A}" ]]; then
   INCLUDES=$(cat <<EOF
 {