summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-07-28 16:54:37 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2016-07-28 16:54:37 -0700
commitd9c2341dc6644ea456714933813e587379d464c2 (patch)
tree508e9942ada53045c43f7693aa73a7c7941b9731
parent35229d065ce164cc3d8a3b37446f27c9d85deddc (diff)
downloadldid-d9c2341dc6644ea456714933813e587379d464c2.tar.gz
ldid-d9c2341dc6644ea456714933813e587379d464c2.tar.zst
ldid-d9c2341dc6644ea456714933813e587379d464c2.zip
Our list of excluded files/folders was incomplete.
-rw-r--r--ldid.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 4ac0012..a6815d3 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -1850,13 +1850,14 @@ std::string Bundle(const std::string &root, Folder &folder, const std::string &k
}));
})), "open(): Info.plist");
+ static const std::string directory("_CodeSignature/");
+ static const std::string signature(directory + "CodeResources");
+
std::map<std::string, std::multiset<Rule>> versions;
auto &rules1(versions[""]);
auto &rules2(versions["2"]);
- static const std::string signature("_CodeSignature/CodeResources");
-
folder.Open(signature, fun([&](std::streambuf &buffer) {
plist_d(buffer, fun([&](plist_t node) {
// XXX: maybe attempt to preserve existing rules
@@ -1902,7 +1903,8 @@ std::string Bundle(const std::string &root, Folder &folder, const std::string &k
}));
folder.Find("", fun([&](const std::string &name, const Functor<void (const Functor<void (std::streambuf &, std::streambuf &)> &)> &code) {
- if (name == executable || name == signature)
+ // BundleDiskRep::adjustResources -> builder.addExclusion
+ if (name == executable || Starts(name, directory) || Starts(name, "_MASReceipt/") || name == "CodeResources")
return;
auto &hash(local[name]);