fix: sub-bundle detection

This commit is contained in:
zx committed 2024-09-10 17:23:30 -04:00
1 parent c3a51e7e03
commit f5a5d7b5ed
3 files changed
+9 -5

No files matched your search

+1 -1
View File
@@ -95,7 +95,7 @@ def main() -> None:
) )
parser.add_argument( parser.add_argument(
"--version", action="version", version="cyan v1.0" "--version", action="version", version="cyan v1.1.2"
) )
from cyan import logic from cyan import logic
+7 -3
View File
@@ -153,12 +153,16 @@ def extract_deb(deb: str, tweaks: dict[str, str], tmpdir: str) -> None:
for hi in sum(( for hi in sum((
glob(f"{t2}/**/*.dylib", recursive=True), glob(f"{t2}/**/*.dylib", recursive=True),
glob(f"{t2}/**/*.bundle", recursive=True),
glob(f"{t2}/**/*.appex", recursive=True), glob(f"{t2}/**/*.appex", recursive=True),
glob(f"{t2}/**/*.bundle", recursive=True),
glob(f"{t2}/**/*.framework", recursive=True) glob(f"{t2}/**/*.framework", recursive=True)
), []): # type: ignore ), []): # type: ignore
if os.path.islink(hi): if (
continue # symlinks are broken iirc os.path.islink(hi) # symlinks are broken iirc
or hi.count(".bundle") > 1 # prevent sub-bundle detection (rip)
or hi.count(".framework") > 1
):
continue
tweaks[os.path.basename(hi)] = hi tweaks[os.path.basename(hi)] = hi
+1 -1
View File
@@ -4,7 +4,7 @@ from setuptools import setup
setup( setup(
name="cyan", name="cyan",
version="1.1.1", version="1.1.2",
description="finally, pyzule doesn't suck", description="finally, pyzule doesn't suck",
author="zx", author="zx",
author_email="[email protected]", author_email="[email protected]",