Swap to using the main csproj, and rename the binary to sabretools

This commit is contained in:
Whovian NTSN 2024-05-18 16:35:10 -04:00
parent dc83e9ca00
commit a609e36403
2 changed files with 20 additions and 3 deletions

View file

@ -0,0 +1,12 @@
diff --git a/SabreTools/SabreTools.csproj b/SabreTools/SabreTools.csproj
index 9adc4c7a..cb15305b 100644
--- a/SabreTools/SabreTools.csproj
+++ b/SabreTools/SabreTools.csproj
@@ -10,6 +10,7 @@
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
+ <TargetName>sabretools</TargetName>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>1.1.2</Version>

View file

@ -1,4 +1,5 @@
{ lib,
{
lib,
buildDotnetModule,
dotnetCorePackages,
fetchFromGitHub
@ -20,11 +21,15 @@ buildDotnetModule {
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
nugetDeps = ./deps.nix;
projectFile = "SabreTools.sln";
# projectFile = "SabreTools/SabreTools.csproj";
# projectFile = "SabreTools.sln";
projectFile = "SabreTools/SabreTools.csproj";
dotnetBuildFlags = [ "--framework net8.0" ];
dotnetInstallFlags = [ "--framework net8.0" ];
postFixup = ''
mv $out/bin/SabreTools $out/bin/sabretools
'';
meta = {
description = "DAT management tool with advanced editing and sorting features";
homepage = "https://github.com/SabreTools/SabreTools";