Skip to content

Commit

Permalink
Add rootless + roothide builds
Browse files Browse the repository at this point in the history
  • Loading branch information
therealFoxster committed Jul 22, 2024
1 parent f90f60f commit c2370d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,30 @@ jobs:
- name: Install dependencies
run: |
brew install ldid
bash -c "$(curl -fsSL https://raw.githubusercontent.com/roothide/theos/master/bin/install-theos)"
- name: Build
run: |
make package FINALPACKAGE=1
make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
make package FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide
PACKAGE=$(ls packages/ | grep .deb)
if [ -z "$PACKAGE" ]; then
echo "No packages found."
exit 1
fi
mv "packages/$PACKAGE" "packages/${PACKAGE%.deb}-${{ github.sha }}.deb"
echo "PACKAGE_NAME=${PACKAGE%.deb}-${{ github.sha }}.deb" >> $GITHUB_ENV
echo "PACKAGE_PATH=packages/${PACKAGE%.deb}-${{ github.sha }}.deb" >> $GITHUB_ENV
for PACKAGE in $PACKAGES; do
mv "packages/$PACKAGE" "packages/${PACKAGE%.deb}-${{ github.sha }}.deb"
echo "Renamed $PACKAGE to ${PACKAGE%.deb}-${{ github.sha }}.deb"
done
env:
THEOS: ${{ github.workspace }}/theos

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.PACKAGE_NAME }}
path: ${{ env.PACKAGE_PATH }}
name: packages
path: packages/

- name: Set release details
run: |
Expand Down Expand Up @@ -79,4 +83,5 @@ jobs:
## What's New
${{ env.COMMITS }}
prerelease: true
files: ${{ env.PACKAGE_PATH }}
files: |
packages/*.deb
1 change: 1 addition & 0 deletions src/Tweak.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// #import <sys/utsname.h>
#import <rootless.h>
#include <roothide.h>
#import <YTHeaders/YTPlayerViewController.h>
#import <YTHeaders/YTPlayerView.h>
#import <YTHeaders/YTMainAppVideoPlayerOverlayViewController.h>
Expand Down

0 comments on commit c2370d5

Please sign in to comment.