Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build script for ios (ad-hoc) #39

Merged
merged 3 commits into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions Mobile/Mobile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
<!-- <TargetFrameworks>$(TargetFrameworks);net7.0-tizen</TargetFrameworks> -->
<OutputType>Exe</OutputType>
<AssemblyName>Carmen.Mobile</AssemblyName>
<AssemblyName>Carmen.Mobile</AssemblyName>
<RootNamespace>Carmen.Mobile</RootNamespace>
<Authors>David Lang</Authors>
<Authors>David Lang</Authors>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Nullable>enable</Nullable>

<!-- Display name -->
<ApplicationTitle>CARMEN</ApplicationTitle>
Expand Down Expand Up @@ -62,6 +62,13 @@
<UseHardenedRuntime>true</UseHardenedRuntime>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
<CodesignKey>Apple Distribution: David Lang (45435R99CA)</CodesignKey>
<CodesignProvision>CARMEN (Ad-Hoc)</CodesignProvision>
<ArchiveOnBuild>true</ArchiveOnBuild>
</PropertyGroup>

<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
Expand Down
6 changes: 6 additions & 0 deletions Mobile/build_for_ios.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e
dotnet publish -f net7.0-ios -c Release
echo BUILT FOR AD-HOC DEPLOYMENT
echo Distribute using Apple Configurator: https://apps.apple.com/app/id1037126344
echo User guide: https://support.apple.com/en-au/guide/apple-configurator-mac/welcome/mac