From 645b18684a47191a5f4bf7ac830da3199b9124bf Mon Sep 17 00:00:00 2001 From: Elias Tekdin Date: Wed, 15 Jul 2026 15:41:53 +0200 Subject: [PATCH 1/3] Set up standalone WSL build --- .gitignore | 3 +++ Makefile | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..acd229b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.theos/ +packages/ +*.deb \ No newline at end of file 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 From 699ff1fc1986c78830ef5d6eec58cad0dee7113c Mon Sep 17 00:00:00 2001 From: Elias Tekdin Date: Wed, 15 Jul 2026 15:42:41 +0200 Subject: [PATCH 2/3] Ignore local build output --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index acd229b..9544aed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .theos/ packages/ -*.deb \ No newline at end of file +*.deb +build/ From 6c6263dab641c09ed1887ba5b997687cec13d7e5 Mon Sep 17 00:00:00 2001 From: Elias Tekdin Date: Wed, 15 Jul 2026 15:45:25 +0200 Subject: [PATCH 3/3] Build dylib on macOS GitHub Actions --- .github/workflows/build.yml | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/build.yml 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