feat: add native Tomie adapter and strict import compatibility checks
This commit is contained in:
1 parent
c8d83b3fe7
commit
57a4edcbfd
45 files changed
+2985
-71
No files matched your search
@@ -34,6 +34,12 @@ def check(source: Path) -> dict:
|
||||
if source.is_dir():
|
||||
return inspect_directory(source)
|
||||
if not source.name.lower().endswith(ARCHIVES):
|
||||
if source.suffix.lower() == ".exe" and source.stat().st_size >= 4:
|
||||
with source.open("rb") as handle:
|
||||
handle.seek(-4, 2)
|
||||
if handle.read(4) == b"GDPC":
|
||||
raise CompatibilityError("godot", [Issue("unsupported_engine",
|
||||
"В EXE обнаружен встроенный пакет Godot; его исполнение пока не поддерживается")])
|
||||
raise CompatibilityError("unknown", [Issue("not_distribution",
|
||||
"Нужна папка или архив полного дистрибутива; отдельные EXE и RPA не импортируются")])
|
||||
return inspect_archive(source, source.name)
|
||||
|
||||
Reference in new issue
Block a user