Sfoglia il codice sorgente

build(linux): allows patch per arch for reh

Baptiste Augrain 7 mesi fa
parent
commit
e8abb85f36
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      package_linux_reh.sh

+ 12 - 0
package_linux_reh.sh

@@ -92,6 +92,18 @@ if [[ -d "../patches/linux/reh/" ]]; then
   done
   done
 fi
 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
 if [[ -n "${USE_GNUPP2A}" ]]; then
   INCLUDES=$(cat <<EOF
   INCLUDES=$(cat <<EOF
 {
 {