Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit fd330b7

Browse files
committed
build for roothide
Signed-off-by: Lessica <[email protected]>
1 parent d690839 commit fd330b7

File tree

19 files changed

+335
-69
lines changed

19 files changed

+335
-69
lines changed

.github/workflows/build-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ jobs:
7979
cd $GITHUB_WORKSPACE/TrollSpeed
8080
./gen-control.sh ${{ env.GIT_TAG }}
8181
./build.sh ${{ env.GIT_TAG }}
82-
THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 make package
83-
FINALPACKAGE=1 make clean
84-
FINALPACKAGE=1 make package
82+
THEOS_PACKAGE_SCHEME=roothide FINALPACKAGE=1 make clean package
83+
THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 make clean package
84+
FINALPACKAGE=1 make clean package
8585
8686
- name: Collect symbols
8787
run: |

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARCHS := arm64 # arm64e
2-
TARGET := iphone:clang:15.6:14.0
2+
TARGET := iphone:clang:16.5:14.0
33
INSTALL_TARGET_PROCESSES := TrollSpeed
44
ENT_PLIST := $(PWD)/supports/entitlements.plist
55
LAUNCHD_PLIST := $(PWD)/layout/Library/LaunchDaemons/ch.xxtou.hudservices.plist
@@ -10,12 +10,18 @@ GIT_TAG_SHORT := $(shell git describe --tags --always --abbrev=0)
1010
APPLICATION_NAME := TrollSpeed
1111

1212
TrollSpeed_USE_MODULES := 0
13+
1314
TrollSpeed_FILES += $(wildcard sources/*.mm sources/*.m)
1415
TrollSpeed_FILES += $(wildcard sources/KIF/*.mm sources/KIF/*.m)
1516
TrollSpeed_FILES += $(wildcard sources/*.swift)
1617
TrollSpeed_FILES += $(wildcard sources/SPLarkController/*.swift)
1718
TrollSpeed_FILES += $(wildcard sources/SnapshotSafeView/*.swift)
1819

20+
ifeq ($(THEOS_PACKAGE_SCHEME),roothide)
21+
TrollSpeed_FILES += libroot/dyn.c
22+
TrollSpeed_LIBRARIES += roothide
23+
endif
24+
1925
# App Intents will be built from Xcode.
2026
# TrollSpeed_FILES += $(wildcard sources/Intents/*.swift)
2127

TrollSpeed.xcodeproj/project.pbxproj

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
6143419C2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */; };
11+
6143419D2CD0D9650069FD88 /* libroot_dyn_iphoneos-arm64.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */; };
1012
CC2A77302B6AADB400796650 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = CC2A772F2B6AADB400796650 /* Settings.bundle */; };
1113
CC2A77312B6AADB400796650 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = CC2A772F2B6AADB400796650 /* Settings.bundle */; };
1214
CC2BAFBA2B5CA9DD00A429D1 /* SPLarkPresentingAnimationController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC711D312B5BF5C6007235A6 /* SPLarkPresentingAnimationController.swift */; };
@@ -85,6 +87,7 @@
8587
/* Begin PBXFileReference section */
8688
0F43B7702B60D397003A435D /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = ../Resources/es.lproj/Localizable.strings; sourceTree = "<group>"; };
8789
0F43B7712B60D397003A435D /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = ../Resources/es.lproj/InfoPlist.strings; sourceTree = "<group>"; };
90+
6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "libroot_dyn_iphoneos-arm64.a"; sourceTree = "<group>"; };
8891
CC2A772F2B6AADB400796650 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = Settings.bundle; path = Resources/Settings.bundle; sourceTree = SOURCE_ROOT; };
8992
CC2BAFE22B5CA9DD00A429D1 /* TrollSpeed-Sandbox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "TrollSpeed-Sandbox.app"; sourceTree = BUILT_PRODUCTS_DIR; };
9093
CC2BAFE42B5CAF2200A429D1 /* Sandbox-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Sandbox-Info.plist"; sourceTree = "<group>"; };
@@ -180,7 +183,6 @@
180183
CC9130A52B62A262006E3280 /* hudapp-bridging-header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "hudapp-bridging-header.h"; sourceTree = "<group>"; };
181184
CC9130A62B62A33A006E3280 /* TSSettingsIndex.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TSSettingsIndex.swift; sourceTree = "<group>"; };
182185
CCB6B6FA2B5C06DD00AD2A89 /* NSUserDefaults+Private.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSUserDefaults+Private.h"; sourceTree = "<group>"; };
183-
CCB6B6FB2B5C074F00AD2A89 /* rootless.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = rootless.h; sourceTree = "<group>"; };
184186
/* End PBXFileReference section */
185187

186188
/* Begin PBXFrameworksBuildPhase section */
@@ -189,6 +191,7 @@
189191
buildActionMask = 2147483647;
190192
files = (
191193
CC8DDA992B66318E001C7C9E /* AppIntents.framework in Frameworks */,
194+
6143419D2CD0D9650069FD88 /* libroot_dyn_iphoneos-arm64.a in Frameworks */,
192195
);
193196
runOnlyForDeploymentPostprocessing = 0;
194197
};
@@ -201,6 +204,7 @@
201204
CC8DDA9A2B6631DC001C7C9E /* AppIntents.framework in Frameworks */,
202205
CC711D9C2B5C0032007235A6 /* IOKit.tbd in Frameworks */,
203206
CC711D9A2B5BFF2F007235A6 /* BackBoardServices.tbd in Frameworks */,
207+
6143419C2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a in Frameworks */,
204208
CC711D982B5BFF2F007235A6 /* GraphicsServices.tbd in Frameworks */,
205209
);
206210
runOnlyForDeploymentPostprocessing = 0;
@@ -340,7 +344,6 @@
340344
CC711D762B5BF6B7007235A6 /* LSApplicationWorkspace.h */,
341345
CCB6B6FA2B5C06DD00AD2A89 /* NSUserDefaults+Private.h */,
342346
CC711D702B5BF6B7007235A6 /* pac_helper.h */,
343-
CCB6B6FB2B5C074F00AD2A89 /* rootless.h */,
344347
CC711D722B5BF6B7007235A6 /* SBSAccessibilityWindowHostingController.h */,
345348
CC711D6F2B5BF6B7007235A6 /* SpringBoardServices.h */,
346349
CC711D692B5BF6B7007235A6 /* UIApplication+Private.h */,
@@ -362,10 +365,11 @@
362365
isa = PBXGroup;
363366
children = (
364367
CC711D9D2B5C0081007235A6 /* AssertionServices.tbd */,
365-
CC711D9B2B5C0032007235A6 /* IOKit.tbd */,
366368
CC711D972B5BFF2F007235A6 /* BackBoardServices.tbd */,
367369
CC711D952B5BFF2F007235A6 /* GraphicsServices.tbd */,
370+
CC711D9B2B5C0032007235A6 /* IOKit.tbd */,
368371
CC711D962B5BFF2F007235A6 /* SpringBoardServices.tbd */,
372+
6143419B2CD0D8F00069FD88 /* libroot_dyn_iphoneos-arm64.a */,
369373
);
370374
path = libraries;
371375
sourceTree = "<group>";
@@ -604,7 +608,7 @@
604608
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
605609
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
606610
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
607-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
611+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
608612
LD_RUNPATH_SEARCH_PATHS = (
609613
"$(inherited)",
610614
"@executable_path/Frameworks",
@@ -620,6 +624,7 @@
620624
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
621625
SUPPORTS_MACCATALYST = NO;
622626
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
627+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
623628
SWIFT_EMIT_LOC_STRINGS = YES;
624629
SWIFT_OBJC_BRIDGING_HEADER = "supports/hudapp-bridging-header.h";
625630
SWIFT_VERSION = 5.0;
@@ -647,7 +652,7 @@
647652
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
648653
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
649654
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
650-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
655+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
651656
LD_RUNPATH_SEARCH_PATHS = (
652657
"$(inherited)",
653658
"@executable_path/Frameworks",
@@ -663,6 +668,7 @@
663668
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
664669
SUPPORTS_MACCATALYST = NO;
665670
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
671+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
666672
SWIFT_EMIT_LOC_STRINGS = YES;
667673
SWIFT_OBJC_BRIDGING_HEADER = "supports/hudapp-bridging-header.h";
668674
SWIFT_VERSION = 5.0;
@@ -724,6 +730,7 @@
724730
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
725731
GCC_WARN_UNUSED_FUNCTION = YES;
726732
GCC_WARN_UNUSED_VARIABLE = YES;
733+
HEADER_SEARCH_PATHS = $THEOS/vendor/include;
727734
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
728735
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
729736
MARKETING_VERSION = 1.12.1;
@@ -732,6 +739,7 @@
732739
ONLY_ACTIVE_ARCH = YES;
733740
PRODUCT_MODULE_NAME = TrollSpeed;
734741
SDKROOT = iphoneos;
742+
THEOS = $HOME/theos;
735743
VERSIONING_SYSTEM = "apple-generic";
736744
};
737745
name = Debug;
@@ -784,6 +792,7 @@
784792
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
785793
GCC_WARN_UNUSED_FUNCTION = YES;
786794
GCC_WARN_UNUSED_VARIABLE = YES;
795+
HEADER_SEARCH_PATHS = $THEOS/vendor/include;
787796
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
788797
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
789798
MARKETING_VERSION = 1.12.1;
@@ -792,6 +801,7 @@
792801
PRODUCT_MODULE_NAME = TrollSpeed;
793802
SDKROOT = iphoneos;
794803
SWIFT_COMPILATION_MODE = wholemodule;
804+
THEOS = $HOME/theos;
795805
VALIDATE_PRODUCT = YES;
796806
VERSIONING_SYSTEM = "apple-generic";
797807
};
@@ -818,7 +828,7 @@
818828
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
819829
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
820830
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
821-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
831+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
822832
LD_RUNPATH_SEARCH_PATHS = (
823833
"$(inherited)",
824834
"@executable_path/Frameworks",
@@ -834,6 +844,7 @@
834844
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
835845
SUPPORTS_MACCATALYST = NO;
836846
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
847+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
837848
SWIFT_EMIT_LOC_STRINGS = YES;
838849
SWIFT_OBJC_BRIDGING_HEADER = "supports/hudapp-bridging-header.h";
839850
SWIFT_VERSION = 5.0;
@@ -862,7 +873,7 @@
862873
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.developer-tools";
863874
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
864875
INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait;
865-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
876+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
866877
LD_RUNPATH_SEARCH_PATHS = (
867878
"$(inherited)",
868879
"@executable_path/Frameworks",
@@ -878,6 +889,7 @@
878889
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
879890
SUPPORTS_MACCATALYST = NO;
880891
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
892+
SUPPORTS_XR_DESIGNED_FOR_IPHONE_IPAD = NO;
881893
SWIFT_EMIT_LOC_STRINGS = YES;
882894
SWIFT_OBJC_BRIDGING_HEADER = "supports/hudapp-bridging-header.h";
883895
SWIFT_VERSION = 5.0;

devkit/env.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export THEOS=$HOME/theos
4+
export THEOS_PACKAGE_SCHEME=
5+
export THEOS_DEVICE_IP=127.0.0.1
6+
export THEOS_DEVICE_PORT=58422

devkit/roothide.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export THEOS=$HOME/theos-roothide
4+
export THEOS_PACKAGE_SCHEME=roothide
5+
export THEOS_DEVICE_IP=127.0.0.1
6+
export THEOS_DEVICE_PORT=58422

devkit/rootless.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
export THEOS=$HOME/theos
4+
export THEOS_PACKAGE_SCHEME=rootless
5+
export THEOS_DEVICE_IP=127.0.0.1
6+
export THEOS_DEVICE_PORT=58422

headers/rootless.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

layout/Library/LaunchDaemons/ch.xxtou.hudservices.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<string>Interactive</string>
2626
<key>ProgramArguments</key>
2727
<array>
28-
<string>/var/jb/Applications/TrollSpeed.app/TrollSpeed</string>
28+
<string>/Applications/TrollSpeed.app/TrollSpeed</string>
2929
<string>-hud</string>
3030
</array>
3131
<key>RunAtLoad</key>
27.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)