mirror of
https://github.com/SK-la/Ez2Lazer.git
synced 2026-03-13 11:20:28 +00:00
Removes the previous `AppIcon.appiconset` bundle and replaces it with all of the necessary asset slices to enable all of the Liquid Glass variants of the app icon on iOS 26, while also preserving backwards compatibility with older iOS versions. <img width="1164" height="388" alt="LiquidGlass" src="https://github.com/user-attachments/assets/7d6e7a90-3fe5-4853-9c63-35144359f49e" /> --------- Co-authored-by: Dean Herbert <pe@ppy.sh>
41 lines
2.2 KiB
XML
41 lines
2.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup Label="Project">
|
|
<TargetFramework>net8.0-ios</TargetFramework>
|
|
<SupportedOSPlatformVersion>13.4</SupportedOSPlatformVersion>
|
|
<OutputType>Exe</OutputType>
|
|
<Version>0.1.0</Version>
|
|
|
|
<!-- Incoming version string will be e.g. 2025.723.0-tachyon -->
|
|
<VersionNoSuffix>$([System.String]::Copy('$(Version)').Split('-')[0])</VersionNoSuffix>
|
|
|
|
<ApplicationVersion Condition=" '$(ApplicationVersion)' == '' ">$(VersionNoSuffix)</ApplicationVersion>
|
|
<ApplicationDisplayVersion Condition=" '$(ApplicationDisplayVersion)' == '' ">$(VersionNoSuffix)</ApplicationDisplayVersion>
|
|
</PropertyGroup>
|
|
<Import Project="..\osu.iOS.props" />
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\osu.Game\osu.Game.csproj" />
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Catch\osu.Game.Rulesets.Catch.csproj" />
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Mania\osu.Game.Rulesets.Mania.csproj" />
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Osu\osu.Game.Rulesets.Osu.csproj" />
|
|
<ProjectReference Include="..\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Maui.Essentials" Version="8.0.3" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<BundleResource Include="Assets.car" />
|
|
<BundleResource Include="AppIcon60x60@2x.png" />
|
|
<BundleResource Include="AppIcon76x76@2x~ipad.png" />
|
|
</ItemGroup>
|
|
<!-- https://github.com/dotnet/macios/blob/eabcdee2ac43a0cc8324396a1bf75f8797d71810/msbuild/Xamarin.Shared/Xamarin.Shared.targets#L1328 -->
|
|
<Target Name="AddOsuVersionToBundle" AfterTargets="_CreateAppBundle">
|
|
<PropertyGroup>
|
|
<PlistFilePath>$(AppBundleDir)/Info.plist</PlistFilePath>
|
|
<OsuVersionKey>OsuVersion</OsuVersionKey>
|
|
</PropertyGroup>
|
|
<Exec Command="bash -c "(/usr/libexec/PlistBuddy -c 'Print :$(OsuVersionKey)' '$(PlistFilePath)' >/dev/null 2>&1 \
|
|
&& /usr/libexec/PlistBuddy -c 'Set :$(OsuVersionKey) $(Version)' '$(PlistFilePath)') \
|
|
|| /usr/libexec/PlistBuddy -c 'Add :$(OsuVersionKey) string $(Version)' '$(PlistFilePath)'""/>
|
|
</Target>
|
|
</Project>
|