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:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -1,11 +1,9 @@
|
||||
name: Build Tweak
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
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
|
||||
default: 'BusinessJB'
|
||||
branch:
|
||||
@@ -84,13 +82,24 @@ jobs:
|
||||
|
||||
- name: Build Tweak
|
||||
run: |
|
||||
TWEAK_NAME="${{ inputs.tweak || 'BusinessJB' }}"
|
||||
cd "$TWEAK_NAME"
|
||||
TWEAK_PATH="${{ inputs.tweak || 'BusinessJB' }}"
|
||||
TWEAK_NAME=$(basename "$TWEAK_PATH")
|
||||
|
||||
cd "$TWEAK_PATH"
|
||||
echo "TWEAK_VERSION=$(grep '^Version:' control | cut -d ' ' -f2)" >> $GITHUB_ENV
|
||||
echo "TWEAK_NAME=$TWEAK_NAME" >> $GITHUB_ENV
|
||||
|
||||
# Check if this is a tvOS tweak
|
||||
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 }}
|
||||
|
||||
- name: Upload the tweak .deb(s)
|
||||
|
||||
Reference in New Issue
Block a user