merging entitlements

This commit is contained in:
eevee
2025-05-04 17:44:53 +03:00
parent 661619ccd7
commit 5f4adec22c
6 changed files with 163 additions and 85 deletions
@@ -31,6 +31,6 @@ internal static class InfoPlistDictionaryExtensions
internal static string BundleExecutable(this NSDictionary dictionary) =>
((NSString)dictionary[CoreFoundationBundleExecutableKey]).Content;
internal static async Task SaveToFile(this NSDictionary dictionary, string filePath) =>
internal static async Task SaveToFileAsync(this NSDictionary dictionary, string filePath) =>
await File.WriteAllTextAsync(filePath, dictionary.ToXmlPropertyList());
}
@@ -77,7 +77,7 @@ internal partial class PackageManager
var newBundleId = bundleId.Replace(packageBundleId, customBundleId);
dictionary[CoreFoundationBundleIdentifierKey] = new NSString(newBundleId);
await dictionary.SaveToFile(file);
await dictionary.SaveToFileAsync(file);
replacedCount++;
}
@@ -94,7 +94,7 @@ internal partial class PackageManager
if (packagingInfo.EnableDocumentsSupport)
EnableDocumentSupport();
await _infoDictionary.SaveToFile(_infoDictionaryFile.FullName);
await _infoDictionary.SaveToFileAsync(_infoDictionaryFile.FullName);
if (packagingInfo.CustomBundleId is not { } customBundleId)
return;