diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..00ee59e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build TweaksLoader dylib + +on: + workflow_dispatch: + push: + branches: + - main + - feature/dock-spacing + +permissions: + contents: read + +jobs: + build: + runs-on: macos-15 + + steps: + - name: Check out source + uses: actions/checkout@v6 + + - name: Install Theos and dependencies + run: | + export THEOS="$HOME/theos" + bash -c "$(curl -fsSL https://raw.githubusercontent.com/theos/theos/master/bin/install-theos)" + test -x "$THEOS/bin/nic.pl" + + - name: Build dylib + env: + THEOS: ${{ runner.temp }}/../theos + run: | + export THEOS="$HOME/theos" + make clean + make + test -f .theos/obj/debug/TweaksLoader.dylib + + - name: Upload device dylib + uses: actions/upload-artifact@v4 + with: + name: TweaksLoader-${{ github.sha }} + path: .theos/obj/debug/TweaksLoader.dylib + if-no-files-found: error + retention-days: 14 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9544aed --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.theos/ +packages/ +*.deb +build/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3fd7341 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +THEOS ?= /home/gg1x/theos +TARGET := iphone:clang:latest:15.0 +ARCHS := arm64 arm64e + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME := TweaksLoader +TweaksLoader_FILES := main.m +TweaksLoader_CFLAGS := -fobjc-arc -Wno-deprecated-declarations -Wno-error +TweaksLoader_FRAMEWORKS := UIKit Foundation + +include $(THEOS_MAKE_PATH)/tweak.mk \ No newline at end of file