145 lines
6.3 KiB
XML
145 lines
6.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFrameworks>net8.0-maccatalyst</TargetFrameworks>
|
|
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
|
|
<OutputType>Exe</OutputType>
|
|
<RootNamespace>installer</RootNamespace>
|
|
<UseMaui>true</UseMaui>
|
|
<SingleProject>true</SingleProject>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<ApplicationEntryPoint>installer.MauiProgram</ApplicationEntryPoint>
|
|
|
|
<!-- 解决编译器访问权限问题 -->
|
|
<NoWarn>$(NoWarn);8305</NoWarn>
|
|
<RestorePackagesWithLockFile>false</RestorePackagesWithLockFile>
|
|
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
|
|
<UseProjectReference>true</UseProjectReference>
|
|
<MSBuildWarningsAsMessages>$(MSBuildWarningsAsMessages);MSB3277</MSBuildWarningsAsMessages>
|
|
|
|
<!-- 基本配置 -->
|
|
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win-x64</RuntimeIdentifiers>
|
|
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers>
|
|
|
|
<!-- Display name -->
|
|
<ApplicationTitle>THUAI8 Installer</ApplicationTitle>
|
|
|
|
<!-- App Identifier -->
|
|
<ApplicationId>com.thuai8.installer</ApplicationId>
|
|
<ApplicationIdGuid>6ddba53f-7974-429b-b611-fb76feda9efc</ApplicationIdGuid>
|
|
|
|
<!-- Versions -->
|
|
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
|
|
<ApplicationVersion>1</ApplicationVersion>
|
|
|
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst'">13.1</SupportedOSPlatformVersion>
|
|
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</SupportedOSPlatformVersion>
|
|
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
|
|
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-maccatalyst|AnyCPU'">
|
|
<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows10.0.19041.0|AnyCPU'">
|
|
<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
|
<WindowsAppSDKBootstrapAutoInitialize>true</WindowsAppSDKBootstrapAutoInitialize>
|
|
<UseRidGraph>true</UseRidGraph>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows10.0.19041.0|AnyCPU'">
|
|
<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
<SelfContained>true</SelfContained>
|
|
<PublishSingleFile>false</PublishSingleFile>
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
|
<WindowsPackageType>None</WindowsPackageType>
|
|
<UseRidGraph>true</UseRidGraph>
|
|
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
|
<WindowsAppSDKBootstrapAutoInitialize>true</WindowsAppSDKBootstrapAutoInitialize>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-maccatalyst|AnyCPU'">
|
|
<ApplicationDisplayVersion>1.0.0</ApplicationDisplayVersion>
|
|
<RuntimeIdentifier>maccatalyst-x64</RuntimeIdentifier>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- App Icon -->
|
|
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
|
|
|
|
<!-- Splash Screen -->
|
|
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
|
|
|
|
<!-- Images -->
|
|
<MauiImage Include="Resources\Images\*" />
|
|
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
|
|
|
|
<!-- Custom Fonts -->
|
|
<MauiFont Include="Resources\Fonts\*" />
|
|
|
|
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
|
|
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AndroidResource Remove="publish\**" />
|
|
<Compile Remove="publish\**" />
|
|
<EmbeddedResource Remove="publish\**" />
|
|
<MauiCss Remove="publish\**" />
|
|
<MauiXaml Remove="publish\**" />
|
|
<None Remove="publish\**" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
|
|
<PackageReference Include="CommunityToolkit.Maui" Version="6.1.0" />
|
|
<PackageReference Include="CommunityToolkit.Maui.Core" Version="6.1.0" />
|
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
|
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
|
|
<PackageReference Include="Tencent.QCloud.Cos.Sdk" Version="5.4.44" />
|
|
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.100" />
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.5.240802000" Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Compile Update="Page\PlaybackPage.xaml.cs">
|
|
<DependentUpon>PlaybackPage.xaml</DependentUpon>
|
|
</Compile>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<MauiXaml Update="Page\DebugPage.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</MauiXaml>
|
|
<MauiXaml Update="Page\InstallPage.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</MauiXaml>
|
|
<MauiXaml Update="Page\PlaybackPage.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</MauiXaml>
|
|
<MauiXaml Update="Page\LoginPage.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</MauiXaml>
|
|
</ItemGroup>
|
|
|
|
<!-- 确保Windows App SDK能正确初始化 -->
|
|
<Target Name="EnsureWindowsAppSDKInitialize" AfterTargets="Build"
|
|
Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
|
|
<PropertyGroup>
|
|
<WindowsAppSDKBootstrapAutoInitialize>true</WindowsAppSDKBootstrapAutoInitialize>
|
|
<WindowsAppSDKSelfContained>true</WindowsAppSDKSelfContained>
|
|
</PropertyGroup>
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Resources\Raw\secured_key.csv" Condition="Exists('Resources\Raw\secured_key.csv')" />
|
|
</ItemGroup>
|
|
|
|
</Project> |