From 7a3fa7604feb6a6101cbbd813afea3720c45ccf3 Mon Sep 17 00:00:00 2001 From: beerpiss Date: Mon, 10 Jan 2022 22:04:19 +0700 Subject: [PATCH] This should be a more systematic way of patching stuff --- .github/workflows/build.yaml | 7 +++++-- .gitignore | 2 +- patches/GenshinJailbreakBypass/control.patch | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 patches/GenshinJailbreakBypass/control.patch diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d617be0..12ac4ad 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -24,12 +24,15 @@ jobs: brew install make echo PATH=\"$(brew --prefix make)/libexec/gnubin:\$PATH\" >> ~/.zprofile source ~/.zprofile + - + name: Patching files + run: | + find patches/ -type f -iname *.patch -exec /bin/bash -c 'patchfile=$1; orig_file=$(basename ${patchfile#patches/} .patch); patch $orig_file $patchfile' bash '{}' \; - name: Build packages run: | mkdir output - sed -i "" "s#Icon:#Icon: https://github.com/hekatos/repo/raw/main/publish/icons/GenshinJailbreakBypass.png#" /Users/runner/work/tweaks/tweaks/GenshinJailbreakBypass/control - find . -maxdepth 1 -not -path . -type d -not -name '.git' -not -name 'theos' -exec make -C '{}' package FINALPACKAGE=1 \; + find . -maxdepth 1 -not -path . -type d -not -name "patches" -not -name '.git' -not -name 'theos' -exec make -C '{}' package FINALPACKAGE=1 \; find . -type f -iname *.deb -exec mv '{}' output \; - name: Upload artifacts diff --git a/.gitignore b/.gitignore index 180ae04..a51d053 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,5 @@ _ obj .theos .DS_Store -packages/* +packages # End of https://www.toptal.com/developers/gitignore/api/theos-tweak diff --git a/patches/GenshinJailbreakBypass/control.patch b/patches/GenshinJailbreakBypass/control.patch new file mode 100644 index 0000000..e9fa57d --- /dev/null +++ b/patches/GenshinJailbreakBypass/control.patch @@ -0,0 +1,4 @@ +13c13 +< Icon: +--- +> Icon: https://github.com/hekatos/repo/raw/main/publish/icons/GenshinJailbreakBypass.png