Skip to content

Commit

Permalink
*修复 安装器错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MakesYT committed Jan 20, 2025
1 parent 56f7a13 commit 75319ff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System.Text;
using Nuke.Common;
using Nuke.Common.CI.GitHubActions;
using Nuke.Common.Execution;
using Nuke.Common.Git;
using Nuke.Common.IO;
using Nuke.Common.ProjectModel;
Expand Down Expand Up @@ -51,7 +52,7 @@ class Build : NukeBuild
.SetProjectFile(AvaloniaProject.Path)
.SetRuntime("win-x64"));
DotNetRestore(c => new DotNetRestoreSettings()
.SetProjectFile("KitopiaEx")
.SetProjectFile( RootDirectory/"KitopiaEx"/"KitopiaEx.csproj")
.SetRuntime("win-x64"));
});

Expand All @@ -60,7 +61,7 @@ class Build : NukeBuild
.Executes(() =>
{
DotNetBuild(c => new DotNetBuildSettings()
.SetProjectFile("KitopiaEx")
.SetProjectFile( RootDirectory/"KitopiaEx"/"KitopiaEx.csproj")
.SetOutputDirectory(RootDirectory / "buildTest" / "plugins" / "KitopiaEx")
.SetRuntime("win-x64"));
DotNetBuild(c => new DotNetBuildSettings()
Expand Down Expand Up @@ -159,6 +160,7 @@ class Build : NukeBuild

Target PackDebug => _ => _
.OnlyWhenDynamic(() => FinishedTargets.Contains(CreateRelease))
.DependsOn(CreateRelease)
.After(CreateRelease)
.Executes(() =>
{
Expand All @@ -182,6 +184,7 @@ class Build : NukeBuild
Target Pack => _ => _
.OnlyWhenDynamic(() => FinishedTargets.Contains(CreateRelease))
.After(CreateRelease)
.DependsOn(CreateRelease)
.Executes(() =>
{
var rootDirectory = RootDirectory / "Publish";
Expand Down Expand Up @@ -228,6 +231,7 @@ class Build : NukeBuild
Target PackSelf => _ => _
.OnlyWhenDynamic(() => FinishedTargets.Contains(CreateRelease))
.After(CreateRelease)
.DependsOn(CreateRelease)
.Executes(() =>
{
var rootDirectory_self = RootDirectory / "Publish_SelfContained";
Expand Down Expand Up @@ -345,6 +349,7 @@ class Build : NukeBuild
.OnlyWhenDynamic(() => FinishedTargets.Contains(CreateRelease))
.OnlyWhenDynamic(() => FinishedTargets.Contains(BuildNativeInstaller))
.After(CreateRelease)
.DependsOn(CreateRelease)
.DependsOn(BuildNativeInstaller)
.Executes((() =>
{
Expand Down

0 comments on commit 75319ff

Please sign in to comment.