ios 16 poterboard probably
This commit is contained in:
1 parent
918af3baa3
commit
4062d084db
3 files changed
+12
-4
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
<key>Pocket Poster.xcscheme_^#shared#^_</key>
|
<key>Pocket Poster.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>1</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class PosterBoardManager: ObservableObject {
|
|||||||
let fileName = dir.lastPathComponent
|
let fileName = dir.lastPathComponent
|
||||||
if fileName.lowercased() == "container" {
|
if fileName.lowercased() == "container" {
|
||||||
// container support, find the extensions
|
// 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)
|
print(extDir.absoluteString)
|
||||||
var retList: [String: [URL]] = [:]
|
var retList: [String: [URL]] = [:]
|
||||||
for ext in try FileManager.default.contentsOfDirectory(at: extDir, includingPropertiesForKeys: nil, options: .skipsHiddenFiles) {
|
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)")
|
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 {
|
static func createDescriptorsSymlink(appHash: String, ext: String) throws -> URL {
|
||||||
// create a symlink directly to the descriptors
|
// create a symlink directly to the descriptors
|
||||||
print("linking to \(appHash)/Library/Application Support/PRBPosterExtensionDataStore/61/Extensions/\(ext)/descriptors")
|
let extVer = SymHandler.getExtensionVersion()
|
||||||
return try createAppSymlink(for: "\(appHash)/Library/Application Support/PRBPosterExtensionDataStore/61/Extensions/\(ext)/descriptors")
|
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() {
|
static func cleanup() {
|
||||||
|
|||||||
Reference in new issue
Block a user