From c0be4cb6f6064bb3c596f25659a81c3d435e7ccd Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 24 Sep 2025 09:11:07 +0000 Subject: [PATCH] patches/ublock-sources: fix building on windows hopefully --- patches/helium/core/ublock-setup-sources.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/helium/core/ublock-setup-sources.patch b/patches/helium/core/ublock-setup-sources.patch index 5046cdd6..7ac09dd6 100644 --- a/patches/helium/core/ublock-setup-sources.patch +++ b/patches/helium/core/ublock-setup-sources.patch @@ -79,14 +79,14 @@ +from sys import argv +from pathlib import Path + -+ublock_src = argv[1] ++ublock_src = Path(argv[1]) +out_file = argv[2] + +with open(out_file, 'w') as f: + f.write(json.dumps( -+ { "base_dir": ublock_src, -+ "files": [ str((root / file).relative_to(ublock_src)) -+ for root, _, files in Path(ublock_src).walk() ++ { "base_dir": ublock_src.as_posix(), ++ "files": [ (root / file).relative_to(ublock_src).as_posix() ++ for root, _, files in ublock_src.walk() + for file in files ] + } + ))