Skip to content

Commit

Permalink
*更新 0.0.2.103
Browse files Browse the repository at this point in the history
  • Loading branch information
MakesYT committed Feb 12, 2025
1 parent c0e5be4 commit e48a891
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion KitopiaAvalonia/KitopiaAvalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<ApplicationIcon>Assets\icon.ico</ApplicationIcon>
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
<DebugType Condition="'$(Configuration)' == 'Release'">none</DebugType>
<Version>0.0.2.102</Version>
<Version>0.0.2.103</Version>
<AvaloniaVersion>11.2.2</AvaloniaVersion>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU;x64</Platforms>
Expand Down
7 changes: 7 additions & 0 deletions OnnxRuntime.CPU/OnnxRuntime.CPU.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@
<OutputPath>..\KitopiaAvalonia\bin\x64\Debug\net9.0-windows10.0.19041.0\plugins\2_1_kitopiaonnxruntimecpu\</OutputPath>

</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugType>none</DebugType>
<GenerateDocumentationFile>false</GenerateDocumentationFile>

</PropertyGroup>
<ItemGroup>
<None Update="manifest.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="avatar.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
Expand Down
Binary file added OnnxRuntime.CPU/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 35 additions & 4 deletions build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,34 @@ class Build : NukeBuild
DotNetRestore(c => new DotNetRestoreSettings()
.SetProjectFile( RootDirectory/"KitopiaEx"/"KitopiaEx.csproj")
.SetRuntime("win-x64"));
DotNetRestore(c => new DotNetRestoreSettings()
.SetProjectFile( RootDirectory/"OnnxRuntime.CPU"/"OnnxRuntime.CPU.csproj")
.SetRuntime("win-x64"));
DotNetRestore(c => new DotNetRestoreSettings()
.SetProjectFile( RootDirectory/"OnnxRuntime.Gpu.Win"/"OnnxRuntime.Gpu.Win.csproj")
.SetRuntime("win-x64"));
DotNetRestore(c => new DotNetRestoreSettings()
.SetProjectFile( RootDirectory/"OnnxRuntime.OpenVino"/"OnnxRuntime.OpenVino.csproj")
.SetRuntime("win-x64"));
});

Target CompileWindowsX64 => _ => _
.DependsOn(Restore)
.Executes(() =>
{
var rootDirectory = RootDirectory / "buildTest";
rootDirectory.DeleteDirectory();
DotNetBuild(c => new DotNetBuildSettings()
.SetProjectFile( RootDirectory/"KitopiaEx"/"KitopiaEx.csproj")
.SetOutputDirectory(RootDirectory / "buildTest" / "plugins" / "KitopiaEx")
.SetOutputDirectory(rootDirectory / "plugins" / "7_1_kitopiaex")
.SetRuntime("win-x64"));
DotNetBuild(c => new DotNetBuildSettings()
.SetProjectFile( RootDirectory/"OnnxRuntime.CPU"/"OnnxRuntime.CPU.csproj")
.SetOutputDirectory(rootDirectory / "plugins" / "2_1_kitopiaonnxruntimecpu")
.SetRuntime("win-x64"));
DotNetBuild(c => new DotNetBuildSettings()
.SetProjectFile(AvaloniaProject.Path)
.SetOutputDirectory(RootDirectory / "buildTest")
.SetOutputDirectory(rootDirectory)
.SetRuntime("win-x64")
.SetFramework("net9.0-windows10.0.19041.0")
.SetConfiguration("Release")
Expand Down Expand Up @@ -192,7 +207,15 @@ class Build : NukeBuild
rootDirectory.DeleteDirectory();
DotNetPublish(c => new DotNetPublishSettings()
.SetProject("KitopiaEx")
.SetOutput(RootDirectory / "Publish" / "plugins" / "KitopiaEx")
.SetOutput(RootDirectory / "Publish" / "plugins" / "7_1_kitopiaex")
.SetRuntime("win-x64")
.SetFramework("net9.0")
.SetConfiguration("Release")
.SetSelfContained(false)
);
DotNetPublish(c => new DotNetPublishSettings()
.SetProject("OnnxRuntime.CPU")
.SetOutput(RootDirectory / "Publish" / "plugins" / "2_1_kitopiaonnxruntimecpu")
.SetRuntime("win-x64")
.SetFramework("net9.0")
.SetConfiguration("Release")
Expand Down Expand Up @@ -240,7 +263,15 @@ class Build : NukeBuild
DotNetPublish(c => new DotNetPublishSettings()
.SetProject("KitopiaEx")
.SetOutput(RootDirectory / "Publish_SelfContained" / "plugins" /
"KitopiaEx")
"7_1_kitopiaex")
.SetRuntime("win-x64")
.SetFramework("net9.0")
.SetConfiguration("Release")
.SetSelfContained(true)
);
DotNetPublish(c => new DotNetPublishSettings()
.SetProject("OnnxRuntime.CPU")
.SetOutput(RootDirectory / "Publish" / "plugins" / "2_1_kitopiaonnxruntimecpu")
.SetRuntime("win-x64")
.SetFramework("net9.0")
.SetConfiguration("Release")
Expand Down

0 comments on commit e48a891

Please sign in to comment.