ios 16 poterboard probably
This commit is contained in:
1 parent
918af3baa3
commit
4062d084db
3 files changed
+12
-4
No files matched your search
@@ -101,7 +101,7 @@ class PosterBoardManager: ObservableObject {
|
||||
let fileName = dir.lastPathComponent
|
||||
if fileName.lowercased() == "container" {
|
||||
// container support, find the extensions
|
||||
let extDir = dir.appending(path: "Library/Application Support/PRBPosterExtensionDataStore/61/Extensions")
|
||||
let extDir = dir.appending(path: "Library/Application Support/PRBPosterExtensionDataStore/\(SymHandler.getExtensionVersion())/Extensions")
|
||||
print(extDir.absoluteString)
|
||||
var retList: [String: [URL]] = [:]
|
||||
for ext in try FileManager.default.contentsOfDirectory(at: extDir, includingPropertiesForKeys: nil, options: .skipsHiddenFiles) {
|
||||
|
||||
@@ -43,10 +43,18 @@ class SymHandler {
|
||||
return try createSymlink(to: "/var/mobile/Containers/Data/Application/\(appHash)")
|
||||
}
|
||||
|
||||
static func getExtensionVersion() -> String {
|
||||
if #available(iOS 17.0, *) {
|
||||
return "61"
|
||||
}
|
||||
return "59"
|
||||
}
|
||||
|
||||
static func createDescriptorsSymlink(appHash: String, ext: String) throws -> URL {
|
||||
// create a symlink directly to the descriptors
|
||||
print("linking to \(appHash)/Library/Application Support/PRBPosterExtensionDataStore/61/Extensions/\(ext)/descriptors")
|
||||
return try createAppSymlink(for: "\(appHash)/Library/Application Support/PRBPosterExtensionDataStore/61/Extensions/\(ext)/descriptors")
|
||||
let extVer = SymHandler.getExtensionVersion()
|
||||
print("linking to \(appHash)/Library/Application Support/PRBPosterExtensionDataStore/\(extVer)/Extensions/\(ext)/descriptors")
|
||||
return try createAppSymlink(for: "\(appHash)/Library/Application Support/PRBPosterExtensionDataStore/\(extVer)/Extensions/\(ext)/descriptors")
|
||||
}
|
||||
|
||||
static func cleanup() {
|
||||
|
||||
Reference in new issue
Block a user