Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.theos/
packages/
*.deb
build/
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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