Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 3493f7f

Browse files
author
fridakitten
committed
App => 1.6 fixes for trollstore and stock edition
1 parent 2423a7a commit 3493f7f

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

FCM/ToolKit/Compiling/SeansBuild.swift

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@ func build(_ ProjectInfo: Project,_ erase: Bool,_ status: Binding<String>?,_ pro
3535
//Entitlements info[6]
3636
//API Text info[7]
3737

38-
#if stock
39-
_ = rm(info[0])
40-
_ = rm(info[4])
41-
#endif
42-
4338
let fileManager = FileManager.default
4439

4540
if !fileManager.fileExists(atPath: info[3]) {
@@ -151,6 +146,8 @@ func build(_ ProjectInfo: Project,_ erase: Bool,_ status: Binding<String>?,_ pro
151146
for file in MFiles {
152147
if dyexec("\(Bundle.main.bundlePath)/toolchain/bin/clang.dylib", "clang -I\(Bundle.main.bundlePath)/toolchain/lib/clang/16.0.0/include -isysroot \(info[3]) -target arm64-apple-ios\(ProjectInfo.TG) -c \(ProjectInfo.ProjectPath)/\(file) -o \(info[4])/\(UUID()).o") != 0 {
153148
print("[!] clang mostlikely broke, please restart the app if clang didn't told you what exactly went wrong!\n")
149+
_ = rm(info[0])
150+
_ = rm(info[4])
154151
return -1
155152
}
156153
}
@@ -159,10 +156,11 @@ func build(_ ProjectInfo: Project,_ erase: Bool,_ status: Binding<String>?,_ pro
159156
let ofiles = FindFilesStack(ProjectInfo.ProjectPath, [".o"], splitAndTrim(apiextension.ign) + ["Resources"])
160157
if dyexec("\(Bundle.main.bundlePath)/toolchain/bin/ld.dylib", "ld -ObjC -lc -lc++ \(ofiles.map { "\(ProjectInfo.ProjectPath)/\($0)" }.joined(separator: " ")) -syslibroot \(info[3]) \(frameflags) -o \(info[1])/\(ProjectInfo.Executable)") != 0 {
161158
print("[!] linking failed!\n")
159+
_ = rm(info[0])
160+
_ = rm(info[4])
162161
return -1
163162
}
164163
sethome(to: "\(global_container)")
165-
listdylibs()
166164
// -->>> magic ending <<<--
167165
#endif
168166

@@ -194,10 +192,8 @@ func build(_ ProjectInfo: Project,_ erase: Bool,_ status: Binding<String>?,_ pro
194192
_ = climessenger("install--stage","TrollStore Helper returned \(String(result))")
195193
}
196194
#endif
197-
#if !stock
198195
_ = rm(info[0])
199196
_ = rm(info[4])
200-
#endif
201197
if erase {
202198
_ = rm("\(ProjectInfo.ProjectPath)/ts.ipa")
203199
}

FCM/UI/TabBar/ProjectManagement/Project.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func GetProjects() -> [Project] {
3838
var Projects: [Project] = []
3939

4040
for Item in try FileManager.default.contentsOfDirectory(atPath: global_documents) {
41-
if Item == "Inbox" || Item == "savedLayouts.json" {
41+
if Item == "Inbox" || Item == "savedLayouts.json" || Item == ".sdk" || Item == ".cache" {
4242
continue
4343
}
4444

FCM/UI/TabBar/ProjectManagement/ProjectView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ struct buildView: View {
245245
#endif
246246
DispatchQueue.main.async {
247247
if status == 0 {
248-
#if jailbreak
248+
#if !stock
249249
OpenApp(ProjectInfo.BundleID)
250-
#elseif stock
250+
#else
251251
print("[*] you have to export the app!\n")
252252
#endif
253253
}

FCM/bridge.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@
88
#ifndef BRIDGE_H
99
#define BRIDGE_H
1010

11-
#if !stock
1211
#import <libroot/libroot.h>
13-
#endif
1412
#import <libfcm/fcm.h>
1513
#import <libfcm/fload.h>
1614
#import <libzip/libzip.h>
17-
#if stock
1815
#import <libdycall/dyexec.h>
19-
#endif
2016

2117
#endif // BRIDGE_H

0 commit comments

Comments
 (0)