BeatSaberModManager: install as single file

This commit is contained in:
Atemu 2022-10-18 23:39:42 +02:00
parent 6fdd38373e
commit 0fb17c04fe
2 changed files with 22 additions and 5 deletions

View file

@ -0,0 +1,12 @@
--- a/BeatSaberModManager/BeatSaberModManager.csproj
+++ b/BeatSaberModManager/BeatSaberModManager.csproj
@@ -14,6 +14,7 @@
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<ApplicationIcon>Resources/Icons/Icon.ico</ApplicationIcon>
+ <RuntimeIdentifier>@RuntimeIdentifier@</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
Diff finished. Tue Oct 18 23:16:23 2022

View file

@ -1,5 +1,7 @@
{
lib,
dotnet-sdk,
targetPlatform,
buildDotnetModule,
fetchFromGitHub,
@ -22,12 +24,15 @@ buildDotnetModule rec {
fetchSubmodules = true; # It vendors BSIPA-Linux
};
nugetDeps = ./deps.nix;
# This _must_ be specified in the project file and it can only be one so
# obviously you wouldn't specify it as an upstream project. Typical M$.
patches = [ ./add-runtime-identifier.patch ];
postPatch = ''
substituteInPlace BeatSaberModManager/BeatSaberModManager.csproj \
--replace @RuntimeIdentifier@ "${dotnet-sdk.passthru.systemToDotnetRid targetPlatform.system}"
'';
dotnetInstallFlags = [
# FIXME It doesn't like that for some reason beyond my ability to package dotnet
"-p:PublishSingleFile=false"
];
nugetDeps = ./deps.nix;
runtimeDeps = [
libX11