Skip to content

Commit 842c6fd

Browse files
init commit
1 parent 44f54ee commit 842c6fd

26 files changed

Lines changed: 246 additions & 0 deletions

AppDelegate.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import UIKit
2+
3+
@UIApplicationMain
4+
class AppDelegate: UIResponder, UIApplicationDelegate {
5+
6+
var window: UIWindow?
7+
8+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil) -> Bool {
9+
window = UIWindow(frame: UIScreen.main.bounds)
10+
window!.rootViewController = UINavigationController(rootViewController: RootViewController())
11+
window!.makeKeyAndVisible()
12+
return true
13+
}
14+
15+
}

Makefile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
TARGET = iphone:clang:latest:14.0
2+
INSTALL_TARGET_PROCESSES = RebootTools
3+
4+
include $(THEOS)/makefiles/common.mk
5+
6+
APPLICATION_NAME = RebootTools
7+
8+
RebootTools_FILES = AppDelegate.swift RootViewController.swift
9+
RebootTools_FRAMEWORKS = UIKit CoreGraphics
10+
RebootTools_RESOURCES = Resources/Assets.xcassets
11+
12+
include $(THEOS_MAKE_PATH)/application.mk
13+
SUBPROJECTS += RebootRootHelper
14+
include $(THEOS_MAKE_PATH)/aggregate.mk
15+
16+
after-package::
17+
@echo "Renaming .ipa to .tipa..."
18+
@mv ./packages/com.developlab.RebootTools_1.0.ipa ./packages/com.developlab.RebootTools_1.0.tipa || echo "No .ipa file found."

RebootRootHelper/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
TARGET := iphone:clang:latest:7.0
2+
3+
include $(THEOS)/makefiles/common.mk
4+
5+
TOOL_NAME = RebootRootHelper
6+
7+
RebootRootHelper_FILES = main.m
8+
RebootRootHelper_CFLAGS = -fobjc-arc
9+
RebootRootHelper_CODESIGN_FLAGS = -Sentitlements.plist
10+
RebootRootHelper_INSTALL_PATH = /usr/local/bin
11+
12+
include $(THEOS_MAKE_PATH)/tool.mk
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<plist version="1.0">
3+
<dict>
4+
<key>platform-application</key>
5+
<true/>
6+
<key>com.apple.private.security.container-required</key>
7+
<false/>
8+
</dict>
9+
</plist>

RebootRootHelper/main.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <stdio.h>
2+
#include <sys/sysctl.h>
3+
#import <Foundation/Foundation.h>
4+
5+
int main(int argc, char *argv[], char *envp[]) {
6+
@autoreleasepool {
7+
reboot(0);
8+
return 0;
9+
}
10+
}

Resources/AppIcon.png

16.3 KB
Loading

Resources/AppIcon29x29.png

671 Bytes
Loading

Resources/AppIcon29x29@2x.png

1.47 KB
Loading

Resources/AppIcon29x29@3x.png

2.62 KB
Loading

Resources/AppIcon40x40.png

889 Bytes
Loading

0 commit comments

Comments
 (0)