fix dynamic_builder

This commit is contained in:
onyx-and-iris 2026-03-10 23:34:18 +00:00
parent 39c14279b2
commit c3247fa5bf

View File

@ -212,20 +212,11 @@ class DynamicBuilder:
try: try:
result = subprocess.run(cmd, cwd=self.base_dir, capture_output=True, text=True) result = subprocess.run(cmd, cwd=self.base_dir, capture_output=True, text=True)
if result.returncode == 0: if result.returncode == 0:
# Verify the executable was created print(f'[OK] Built {kind}')
exe_path = dist_path / f'{kind}.exe'
if exe_path.exists():
print(f'[OK] Built {kind} -> {exe_path}')
return True return True
else:
print(f'[FAIL] {kind} executable not found at {exe_path}')
return False
else: else:
print(f'[FAIL] Failed to build {kind}') print(f'[FAIL] Failed to build {kind}')
if result.stderr:
print(f'Error: {result.stderr}') print(f'Error: {result.stderr}')
if result.stdout:
print(f'Output: {result.stdout}')
return False return False
except Exception as e: except Exception as e:
print(f'[ERROR] Exception building {kind}: {e}') print(f'[ERROR] Exception building {kind}: {e}')