Skip to content

Commit

Permalink
bugfix: zipped bundle not marked
Browse files Browse the repository at this point in the history
Signed-off-by: Lessica <[email protected]>
  • Loading branch information
Lessica committed Jan 10, 2025
1 parent 974f696 commit 7a8cecb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
- Re-write the injector entirely to be more modular and easier to maintain.
- Speed up the injector by choosing a smaller framework to inject into.
- Speed up the injector by:
- Choose a smaller framework to inject into.
- Skip Mach-Os with **cryptid > 0**
- Update [ChOma](https://github.com/opa334/ChOma/tree/61acfba55695c8f3c6607dd0be933aa104eb9531) to its latest commit.
10 changes: 8 additions & 2 deletions TrollFools/InjectorV3+Preprocess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ extension InjectorV3 {
try FileManager.default.createDirectory(at: extractedURL, withIntermediateDirectories: true)
try FileManager.default.unzipItem(at: assetURL, to: extractedURL)

let extractedContents = try FileManager.default
let extractedItems = try FileManager.default
.contentsOfDirectory(at: extractedURL, includingPropertiesForKeys: nil)
.filter { Self.allowedPathExtensions.contains($0.pathExtension.lowercased()) }

preparedAssetURLs.append(contentsOf: extractedContents)
for extractedItem in extractedItems {
if checkIsBundle(extractedItem) {
urlsToMarkAsInjected.append(extractedItem)
}
}

preparedAssetURLs.append(contentsOf: extractedItems)
continue
}

Expand Down

0 comments on commit 7a8cecb

Please sign in to comment.