mirror of
https://github.com/NohamR/Tweaks.git
synced 2026-05-24 19:59:59 +00:00
Support tweak subpaths and tvOS builds
This commit is contained in:
25
.github/workflows/build.yml
vendored
25
.github/workflows/build.yml
vendored
@@ -1,11 +1,9 @@
|
|||||||
name: Build Tweak
|
name: Build Tweak
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tweak:
|
tweak:
|
||||||
description: 'Tweak folder to build (e.g., BusinessJB, CreditAgricoleJB, Infuse-iOS)'
|
description: 'Tweak folder to build (e.g., BusinessJB, CreditAgricoleJB, Infuse-iOS, TF1Plus/TF1Plus-tvOS)'
|
||||||
required: false
|
required: false
|
||||||
default: 'BusinessJB'
|
default: 'BusinessJB'
|
||||||
branch:
|
branch:
|
||||||
@@ -84,13 +82,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Tweak
|
- name: Build Tweak
|
||||||
run: |
|
run: |
|
||||||
TWEAK_NAME="${{ inputs.tweak || 'BusinessJB' }}"
|
TWEAK_PATH="${{ inputs.tweak || 'BusinessJB' }}"
|
||||||
cd "$TWEAK_NAME"
|
TWEAK_NAME=$(basename "$TWEAK_PATH")
|
||||||
|
|
||||||
|
cd "$TWEAK_PATH"
|
||||||
echo "TWEAK_VERSION=$(grep '^Version:' control | cut -d ' ' -f2)" >> $GITHUB_ENV
|
echo "TWEAK_VERSION=$(grep '^Version:' control | cut -d ' ' -f2)" >> $GITHUB_ENV
|
||||||
echo "TWEAK_NAME=$TWEAK_NAME" >> $GITHUB_ENV
|
echo "TWEAK_NAME=$TWEAK_NAME" >> $GITHUB_ENV
|
||||||
make clean package DEBUG=0 FINALPACKAGE=1
|
|
||||||
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
|
# Check if this is a tvOS tweak
|
||||||
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide
|
if grep -q "TARGET.*appletv" Makefile; then
|
||||||
|
# tvOS tweaks don't use rootless/roothide schemes
|
||||||
|
make clean package DEBUG=0 FINALPACKAGE=1
|
||||||
|
else
|
||||||
|
# iOS tweaks build with multiple schemes
|
||||||
|
make clean package DEBUG=0 FINALPACKAGE=1
|
||||||
|
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=rootless
|
||||||
|
make clean package DEBUG=0 FINALPACKAGE=1 THEOS_PACKAGE_SCHEME=roothide
|
||||||
|
fi
|
||||||
|
|
||||||
mv packages/*.deb ${{ github.workspace }}
|
mv packages/*.deb ${{ github.workspace }}
|
||||||
|
|
||||||
- name: Upload the tweak .deb(s)
|
- name: Upload the tweak .deb(s)
|
||||||
|
|||||||
Reference in New Issue
Block a user