mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
r2modman: 3.2.16 -> 3.2.17 (#523579)
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "r2modman";
|
||||
version = "3.2.16";
|
||||
version = "3.2.17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ebkr";
|
||||
repo = "r2modmanPlus";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ya7VPb+bmOvtXNex9R80N6rZLSCVoyntqCzaHXIwb1M=";
|
||||
hash = "sha256-DXGgTezCcMl37Vu7R+2dwWJmuqsXXtlWRYMX9gqm7+w=";
|
||||
};
|
||||
|
||||
missingHashes = ./missing-hashes.json;
|
||||
@@ -35,6 +35,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# Remove after upstream updates to Yarn 4.14
|
||||
# https://github.com/ebkr/r2modmanPlus/blob/develop/package.json#L118
|
||||
./yarn-4.14-support.patch
|
||||
|
||||
# Fix copying of wrapper files to game directory
|
||||
./wrapper-fix.patch
|
||||
];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
15
pkgs/by-name/r2/r2modman/wrapper-fix.patch
Normal file
15
pkgs/by-name/r2/r2modman/wrapper-fix.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/src/pages/Splash.vue b/src/pages/Splash.vue
|
||||
index a3d16f16..36d77fb1 100644
|
||||
--- a/src/pages/Splash.vue
|
||||
+++ b/src/pages/Splash.vue
|
||||
@@ -188,8 +188,8 @@ async function ensureWrapperInGameFolder(wrapperName: WrapperScript) {
|
||||
if (await FsProvider.instance.exists(path.join(PathResolver.MOD_ROOT, wrapperName))) {
|
||||
await FsProvider.instance.unlink(path.join(PathResolver.MOD_ROOT, wrapperName));
|
||||
}
|
||||
- const wrapperFileResult = await fetch(ProtocolProvider.getPublicAssetUrl(`/${wrapperName}`)).then(res => res.arrayBuffer());
|
||||
- const wrapperFileContent = Buffer.from(wrapperFileResult);
|
||||
+ const wrapperFilePath = path.join(staticsDirectory, wrapperName);
|
||||
+ const wrapperFileContent = await FsProvider.instance.readFile(wrapperFilePath);
|
||||
await FsProvider.instance.writeFile(path.join(PathResolver.MOD_ROOT, wrapperName), wrapperFileContent);
|
||||
await FsProvider.instance.writeFile(path.join(PathResolver.MOD_ROOT, wrapperName), wrapperFileContent);
|
||||
}
|
||||
Reference in New Issue
Block a user