- Updated the path to the built executable to reflect changes in the output structure. - Added calculation and display of total distribution size after build. - Enhanced error reporting for the MSI linking process by capturing and printing stdout and stderr output. - Updated WiX source file to include UI namespace for better compatibility. - Removed unnecessary blank line in test_msi.py for cleaner code.
23 lines
708 B
Python
23 lines
708 B
Python
#!/usr/bin/env python
|
|
"""Test MSI creation."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path(__file__).parent / "build" / "scripts"))
|
|
|
|
from build_windows import WindowsBuilder
|
|
|
|
if __name__ == "__main__":
|
|
builder = WindowsBuilder()
|
|
print("Creating MSI installer...")
|
|
result = builder.create_msi()
|
|
print(f"MSI Creation Result: {result}")
|
|
|
|
# Check if MSI was created
|
|
msi_path = builder.dist_dir / f"WebDropBridge-{builder.version}-Setup.msi"
|
|
if msi_path.exists():
|
|
print(f"\n✅ MSI created successfully: {msi_path}")
|
|
print(f" Size: {msi_path.stat().st_size / 1024 / 1024:.1f} MB")
|
|
else:
|
|
print(f"\n❌ MSI not found: {msi_path}")
|