mirror of
https://github.com/whoeevee/ivinject.git
synced 2026-01-09 00:25:03 +01:00
merging entitlements
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user