}));
})), "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
}));
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]);