mirror of
https://github.com/kiwix/kiwix-apple-custom.git
synced 2025-09-22 03:40:45 -04:00
Fix language file copy
This commit is contained in:
parent
006b57dcea
commit
1c6d61a8d9
@ -135,9 +135,8 @@ class InfoParser:
|
|||||||
return ["**/qqq.lproj"]
|
return ["**/qqq.lproj"]
|
||||||
else:
|
else:
|
||||||
# Copy the enforced lang to the custom folder
|
# Copy the enforced lang to the custom folder
|
||||||
for lang_file in Path().parent.rglob(f'{enforced}.lproj'):
|
for lang_file in Path().cwd().parent.rglob(f'{enforced}.lproj'):
|
||||||
lang_file.copy
|
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
lang_file, Path().parent/"custom"/self.brand_name, dirs_exist_ok=True)
|
lang_file, Path().cwd().parent/"custom"/self.brand_name, dirs_exist_ok=True)
|
||||||
# exclude all other languages under Support/*.lproj
|
# exclude all other languages under Support/*.lproj
|
||||||
return ["**/*.lproj"]
|
return ["**/*.lproj"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user