BeatSaberModManager: install as single file
This commit is contained in:
parent
6fdd38373e
commit
0fb17c04fe
2 changed files with 22 additions and 5 deletions
12
pkgs/games/BeatSaberModManager/add-runtime-identifier.patch
Normal file
12
pkgs/games/BeatSaberModManager/add-runtime-identifier.patch
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue