增加编译打包好后复制到 Releases文件夹

This commit is contained in:
zhengxuan.zhang
2026-08-07 10:10:25 +08:00
parent d29355a60d
commit fcc22e746b
5 changed files with 4 additions and 1 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

@@ -75,7 +75,7 @@
<Separator DockPanel.Dock="Bottom" Background="{x:Null}" Margin="0,10" Opacity="0.5" />
<TextBlock TextWrapping="Wrap" DockPanel.Dock="Top" Text="{Binding PathValidationError}" Visibility="{Binding PathValidationErrorVisibility}" Margin="0,10,0,0" />
<TextBlock TextWrapping="Wrap" DockPanel.Dock="Top" Text="{Binding PathValidationError}" Visibility="{Binding PathValidationErrorVisibility}" Margin="0,10,0,0" Foreground="White" />
</DockPanel>
</Grid>
@@ -191,6 +191,9 @@
<PropertyGroup>
<PreBuildEvent>IF EXIST "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\MSI\Installer.msi" COPY "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\MSI\Installer.msi" "$(ProjectDir)..\bin\$(Platform)\$(Configuration)\" /Y</PreBuildEvent>
</PropertyGroup>
<Target Name="CopyReleaseBundleToReleases" AfterTargets="AfterBuild" Condition="'$(Configuration)' == 'Release' and Exists('$(TargetPath)')">
<Exec Command="powershell.exe -NoProfile -ExecutionPolicy Bypass -Command &quot;$source = '$(TargetPath)'; $version = (Get-Item -LiteralPath $source).VersionInfo.ProductVersion; $directory = Join-Path '$(MSBuildProjectDirectory)\..\..\..\..\Releases' ''; New-Item -ItemType Directory -Force -Path $directory | Out-Null; Copy-Item -LiteralPath $source -Destination (Join-Path $directory ('XplorePlane-' + $version + '.exe')) -Force&quot;" />
</Target>
<ItemGroup>
<ProjectReference Include="..\WPFInstaller.Ui\Bootstrapper.Ui.csproj">
<Name>Bootstrapper.Ui</Name>