Skip to content

Commit

Permalink
This should be a more systematic way of patching stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-psi committed Jan 10, 2022
1 parent 6aa168f commit 7a3fa76
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ _
obj
.theos
.DS_Store
packages/*
packages
# End of https://www.toptal.com/developers/gitignore/api/theos-tweak
4 changes: 4 additions & 0 deletions patches/GenshinJailbreakBypass/control.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
13c13
< Icon:
---
> Icon: https://github.com/hekatos/repo/raw/main/publish/icons/GenshinJailbreakBypass.png

0 comments on commit 7a3fa76

Please sign in to comment.