42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Platforms>AnyCPU</Platforms>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
<AssemblyName>LentiaLauncher</AssemblyName>
|
|
<ApplicationIcon>./src/resources/icon.ico</ApplicationIcon>
|
|
<PublishTrimmed>false</PublishTrimmed>
|
|
</PropertyGroup>
|
|
<Target Name="PackRenderer" BeforeTargets="DispatchToInnerBuild;BeforeBuild">
|
|
<PropertyGroup>
|
|
<BrikPackagerDll>$([System.IO.Path]::Combine('$(PkgBrikPackager)', 'lib', 'net8.0', 'BrikPackager.dll'))</BrikPackagerDll>
|
|
<InputPath>$([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', 'wwwroot'))</InputPath>
|
|
<OutputPathFile>$([System.IO.Path]::Combine('$(TargetDir)', 'root.dat'))</OutputPathFile>
|
|
</PropertyGroup>
|
|
<Message Importance="high" Text="[] Packaging renderer (Cross-Platform)..." />
|
|
<Exec Command="dotnet "$(BrikPackagerDll)" --action pack --input "$(InputPath)" --output "$(OutputPathFile)" --key 66" />
|
|
<Message Importance="high" Text="[] Renderer packed at: $(OutputPathFile)" />
|
|
</Target>
|
|
<ItemGroup>
|
|
<TrimmerRootDescriptor Include="Roots.xml" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Remove="wwwroot\**" />
|
|
<None Update="wwwroot\**">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="BrikPackager" Version="0.0.1" GeneratePathProperty="true" />
|
|
<PackageReference Include="Photino.NET" Version="4.0.16" />
|
|
<PackageReference Include="System.Management" Version="10.0.2" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Update="src\resources\**">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
</Project>
|