1ab85b21bd
Bump release to v1.1.1 and add release/build packaging, installer and onboarding enhancements. Key changes: - Version bump across csproj, README and release assets to 1.1.1. - CI/workflow: copy bundled Powerplans into single-file output, install Inno Setup, build Inno Setup installer, include installer artifacts in GitHub release, and stage unified package zips with uninstall/license files. - Installer: update InstallScript (setup.iss) to point to staged artifacts, include Powerplans folder, and output installer to artifacts/release/installer. - App startup/elevation: requireAdministrator manifest and App.xaml.cs now requests elevation early, terminating non-elevated instance when elevation is requested/declined. - UX: add Performance first-run onboarding overlay (modal with blurred background), updated loading overlay visuals, and related MainWindow logic to show/hide intro and persist seen state. - Settings & config: implement export/import configuration bundle (JSON) with Save/Open dialogs, add ReplaceConfigurationAsync and CloneConfiguration in association service, and adjust settings view labels. - Power plan features: add PowerPlanService.AddCustomPowerPlanFileAsync and UI/command to add .pow files; adjust Import/Apply button labels. - Performance tweaks: reduce power plan change delay from 1000ms to 250ms in config, models and viewmodels. - Theme detection: improve ThemeService to resolve registry values and fallback to system theme helper. - Misc: various logging/status improvements, packaging script fixes (build-release/build-msix), and added package-release-zips script. These changes prepare the project for a formal 1.1.1 release with installer distribution, improved elevation handling and onboarding, plus enhanced import/export and custom power plan support.
87 lines
4.0 KiB
XML
87 lines
4.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0-windows10.0.22000.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<UseWPF>true</UseWPF>
|
|
<UseWindowsForms>true</UseWindowsForms>
|
|
<EnableMsixTooling>true</EnableMsixTooling>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<ApplicationIcon>assets\icons\ico.ico</ApplicationIcon>
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
<SelfContained>true</SelfContained>
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
<PublishTrimmed>false</PublishTrimmed>
|
|
<TrimMode>link</TrimMode>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<NoWarn>CS1998;CS0067;CS0414;WFAC010;IL3000;MVVMTK0034</NoWarn>
|
|
<Version>1.1.1</Version>
|
|
<AssemblyVersion>1.1.1.0</AssemblyVersion>
|
|
<FileVersion>1.1.1.0</FileVersion>
|
|
<InformationalVersion>1.1.1</InformationalVersion>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging" Version="9.0.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
|
|
<PackageReference Include="System.Drawing.Common" Version="9.0.7" />
|
|
<PackageReference Include="System.Management" Version="8.0.0" />
|
|
<PackageReference Include="System.ServiceProcess.ServiceController" Version="9.0.7" />
|
|
<PackageReference Include="WPF-UI" Version="4.2.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Resource Include="assets\icons\ico.ico" />
|
|
</ItemGroup>
|
|
|
|
<!-- Include bundled power plans in build output -->
|
|
<ItemGroup>
|
|
<Content Include="assets\Powerplans\**\*.pow">
|
|
<TargetPath>Powerplans\%(RecursiveDir)%(Filename)%(Extension)</TargetPath>
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<!-- Ensure XAML for ProcessPowerPlanAssociationView generates InitializeComponent -->
|
|
<ItemGroup>
|
|
<Page Update="Views/ProcessPowerPlanAssociationView.xaml">
|
|
<Generator>MSBuild:Compile</Generator>
|
|
</Page>
|
|
</ItemGroup>
|
|
|
|
<!-- Exclude upstream CPUSetSetter reference files from this project build -->
|
|
<ItemGroup>
|
|
<Compile Remove="CPUSetSetter-main\**\*.cs" />
|
|
<Compile Remove="Tests\ThreadPilot.Core.Tests\**\*.cs" />
|
|
<Page Remove="CPUSetSetter-main\**\*.xaml" />
|
|
<Resource Remove="CPUSetSetter-main\**\*.*" />
|
|
<None Remove="CPUSetSetter-main\**\*.*" />
|
|
<EmbeddedResource Remove="Tests\ThreadPilot.Core.Tests\**\*.*" />
|
|
<None Remove="Tests\ThreadPilot.Core.Tests\**\*.*" />
|
|
<!-- Remove Activity Logs screen -->
|
|
<Compile Remove="ViewModels\LogViewerViewModel.cs" />
|
|
<Compile Remove="Views\LogViewerView.xaml.cs" />
|
|
<Page Remove="Views\LogViewerView.xaml" />
|
|
<!-- Remove optional Game Boost feature from build -->
|
|
<Compile Remove="Services\GameBoostService.cs" />
|
|
<Compile Remove="Services\IGameBoostService.cs" />
|
|
<Compile Remove="Services\GameDetectionService.cs" />
|
|
<Compile Remove="Services\IGameDetectionService.cs" />
|
|
<!-- Remove Game Boost-specific integration test from build -->
|
|
<Compile Remove="Tests\GameBoostIntegrationTest.cs" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="GenerateMsixFromPublishOutput" AfterTargets="Publish" Condition="'$(GenerateMsixFromPublish)' == 'true'">
|
|
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\build\build-msix.ps1" -ProjectDir "$(MSBuildProjectDirectory)" -PublishDir "$(PublishDir)." -OutputDir "$(MsixOutputDir)." -Version "$(Version)"" />
|
|
</Target>
|
|
|
|
<Import Project="Directory.Publish.props" Condition="Exists('Directory.Publish.props')" />
|
|
|
|
</Project>
|