From ae3539434b5a07dfe594aff983fa7255743c522e Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Fri, 24 Mar 2023 14:54:51 -0700 Subject: [PATCH 01/10] For Maui Blazor Templates: Added Debug and Release Entitlements. Add ed comments in csproj for publishing to Mac App store. Modified Info.plist to add necessary keys for publishing. --- .../templates/maui-blazor/MauiApp.1.csproj | 45 +++++++++++++++++++ .../MacCatalyst/Entitlements.Debug.plist | 10 +++++ .../MacCatalyst/Entitlements.Release.plist | 13 ++++++ .../Platforms/MacCatalyst/Info.plist | 9 ++++ 4 files changed, 77 insertions(+) create mode 100644 src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist create mode 100644 src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj index 52c193b565ab..c16d69264bd6 100644 --- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj @@ -5,6 +5,14 @@ $(TargetFrameworks);DOTNET_TFM-windows10.0.19041.0 + + + + Exe MauiApp._1 true @@ -52,4 +60,41 @@ + + + Platforms/MacCatalyst/Entitlements.Debug.plist + + + + + True + Manual + true + true + Platforms/MacCatalyst/Entitlements.Release.plist + true + + diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist new file mode 100644 index 000000000000..5e7cb34d2c23 --- /dev/null +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -0,0 +1,10 @@ + + + + + + + com.apple.security.get-task-allow + + + \ No newline at end of file diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist new file mode 100644 index 000000000000..43ec208a4119 --- /dev/null +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist @@ -0,0 +1,13 @@ + + + + + + com.apple.security.app-sandbox + + + + com.apple.security.network.client + + + \ No newline at end of file diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist index 78e923aa2a05..dc0dbc7599aa 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist @@ -1,6 +1,15 @@ + + + + + + + + + UIDeviceFamily From fda811dbfb5c2019c10018b1013a8f90001b77db Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Fri, 24 Mar 2023 15:17:08 -0700 Subject: [PATCH 02/10] Corrected keys in info.plist not within --- .../src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist index dc0dbc7599aa..8e7f656ccc8d 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist @@ -1,6 +1,7 @@ + @@ -10,7 +11,6 @@ - UIDeviceFamily 2 From 64490b40dea1a86d832c57bcf2348b2cf72f52e1 Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Fri, 24 Mar 2023 16:35:40 -0700 Subject: [PATCH 03/10] Added missing newlines to end of Entitlements plists. --- .../maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist | 2 +- .../Platforms/MacCatalyst/Entitlements.Release.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist index 5e7cb34d2c23..30d98ef7c752 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -7,4 +7,4 @@ com.apple.security.get-task-allow - \ No newline at end of file + diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist index 43ec208a4119..da42acb59177 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist @@ -10,4 +10,4 @@ com.apple.security.network.client - \ No newline at end of file + From 2e3900ec4878007a171c61e688bda80d9d62c553 Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Mon, 3 Apr 2023 20:37:23 -0700 Subject: [PATCH 04/10] Removed commented directions from csproj and code sign portions. Will relocate those to docs. --- .../templates/maui-blazor/MauiApp.1.csproj | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj index c16d69264bd6..6d8879783c64 100644 --- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj @@ -60,41 +60,12 @@ - Platforms/MacCatalyst/Entitlements.Debug.plist - - True - Manual - true - true Platforms/MacCatalyst/Entitlements.Release.plist true - From fddeb4145ad3a10ccef79e6a11b622ff2e76557e Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Tue, 4 Apr 2023 16:34:06 -0700 Subject: [PATCH 05/10] Added links to the Maui Publishing docs where relevant. --- src/Templates/src/templates/maui-blazor/MauiApp.1.csproj | 3 +++ .../Platforms/MacCatalyst/Entitlements.Debug.plist | 2 +- .../Platforms/MacCatalyst/Entitlements.Release.plist | 5 ++--- .../templates/maui-blazor/Platforms/MacCatalyst/Info.plist | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj index 6d8879783c64..14a611b27394 100644 --- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj @@ -60,6 +60,9 @@ + Platforms/MacCatalyst/Entitlements.Debug.plist diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist index 30d98ef7c752..0c397d907b18 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -2,7 +2,7 @@ - + com.apple.security.get-task-allow diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist index da42acb59177..eedfece7f390 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist @@ -1,12 +1,11 @@  + - com.apple.security.app-sandbox - - com.apple.security.network.client diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist index 8e7f656ccc8d..9cf73a0b7646 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist @@ -2,7 +2,7 @@ - + From 6c7642269f77f211e739a4cf375f3932d149177d Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Thu, 6 Apr 2023 20:42:06 -0700 Subject: [PATCH 06/10] Modified links to use aka.ms --- src/Templates/src/templates/maui-blazor/MauiApp.1.csproj | 3 +-- .../maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist | 2 +- .../Platforms/MacCatalyst/Entitlements.Release.plist | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj index 14a611b27394..e2632f76c81a 100644 --- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj @@ -61,8 +61,7 @@ + to the App Store. See: https://aka.ms/maui-publish-app-store#define-build-properties-in-your-project-file --> Platforms/MacCatalyst/Entitlements.Debug.plist diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist index 0c397d907b18..833b1d115d7a 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -3,7 +3,7 @@ - + com.apple.security.get-task-allow diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist index eedfece7f390..d7a5231b4d84 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist @@ -1,8 +1,7 @@  - + com.apple.security.app-sandbox From 33cb804701f5a9bafd4669703c5578b8f685a038 Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Thu, 6 Apr 2023 21:39:33 -0700 Subject: [PATCH 07/10] Modified templates for maccatalyst for maui-mobile. Reworded comment. --- .../MacCatalyst/Entitlements.Debug.plist | 2 +- .../MacCatalyst/Entitlements.Release.plist | 1 + .../templates/maui-mobile/MauiApp.1.csproj | 26 ++++++++++++++++++- .../MacCatalyst/Entitlements.Debug.plist | 11 ++++++++ .../MacCatalyst/Entitlements.Release.plist | 12 +++++++++ .../Platforms/MacCatalyst/Info.plist | 9 +++++++ 6 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Debug.plist create mode 100644 src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Release.plist diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist index 833b1d115d7a..cc0208055252 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -2,7 +2,7 @@ - + com.apple.security.get-task-allow diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist index d7a5231b4d84..1db1d9371a28 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Entitlements.Release.plist @@ -9,3 +9,4 @@ + diff --git a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj index 052e2f46f019..402db51e9715 100644 --- a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj @@ -5,6 +5,14 @@ $(TargetFrameworks);DOTNET_TFM-windows10.0.19041.0 + + + + Exe MauiApp._1 true @@ -48,7 +56,23 @@ - + + + + Platforms/MacCatalyst/Entitlements.Debug.plist + + + + Platforms/MacCatalyst/Entitlements.Release.plist + true + + + false + + + false + diff --git a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Debug.plist b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Debug.plist new file mode 100644 index 000000000000..1659c8426552 --- /dev/null +++ b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Debug.plist @@ -0,0 +1,11 @@ + + + + + + + com.apple.security.get-task-allow + + + + diff --git a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Release.plist b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Release.plist new file mode 100644 index 000000000000..1db1d9371a28 --- /dev/null +++ b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Entitlements.Release.plist @@ -0,0 +1,12 @@ + + + + + + com.apple.security.app-sandbox + + com.apple.security.network.client + + + + diff --git a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist index 79a863bb8261..9cac54b828f5 100644 --- a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist @@ -2,6 +2,15 @@ + + + + + + + + + UIDeviceFamily 2 From 1da4de64171b45c74977deb9bb56d8a9b704b3cd Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Mon, 10 Apr 2023 10:30:25 -0700 Subject: [PATCH 08/10] Correct usage to 'Mac App Store' in comments --- src/Templates/src/templates/maui-blazor/MauiApp.1.csproj | 4 ++-- .../templates/maui-blazor/Platforms/MacCatalyst/Info.plist | 2 +- src/Templates/src/templates/maui-mobile/MauiApp.1.csproj | 4 ++-- .../templates/maui-mobile/Platforms/MacCatalyst/Info.plist | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj index e2632f76c81a..6f68566b69e1 100644 --- a/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-blazor/MauiApp.1.csproj @@ -9,7 +9,7 @@ @@ -61,7 +61,7 @@ + to the Mac App Store. See: https://aka.ms/maui-publish-app-store#define-build-properties-in-your-project-file --> Platforms/MacCatalyst/Entitlements.Debug.plist diff --git a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist index 9cf73a0b7646..7b1e6e6219c9 100644 --- a/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-blazor/Platforms/MacCatalyst/Info.plist @@ -2,7 +2,7 @@ - + diff --git a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj index 402db51e9715..5fc02ebca8d9 100644 --- a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj @@ -9,7 +9,7 @@ @@ -60,7 +60,7 @@ + to the Mac App Store. See: https://aka.ms/maui-publish-app-store#define-build-properties-in-your-project-file --> Platforms/MacCatalyst/Entitlements.Debug.plist diff --git a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist index 9cac54b828f5..72689771518a 100644 --- a/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist +++ b/src/Templates/src/templates/maui-mobile/Platforms/MacCatalyst/Info.plist @@ -2,7 +2,7 @@ - + From 82dcbc33c5e9f338ca8b12405ce2ea070485a9a0 Mon Sep 17 00:00:00 2001 From: Dustin Wojciechowski Date: Mon, 10 Apr 2023 10:34:46 -0700 Subject: [PATCH 09/10] Reverted back Logging version that got changed by accident --- src/Templates/src/templates/maui-mobile/MauiApp.1.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj index 5fc02ebca8d9..b474d60ae663 100644 --- a/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj +++ b/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj @@ -56,7 +56,7 @@ - +