Add test script for MSI creation using WindowsBuilder
This commit introduces a new test script, `test_msi.py`, which automates the process of creating an MSI installer. The script utilizes the `WindowsBuilder` class to generate the installer and checks for its successful creation, providing feedback on the result and the file size.
This commit is contained in:
parent
6213bbfa0a
commit
2b12ee2aef
6 changed files with 11945 additions and 33 deletions
24
test_msi.py
Normal file
24
test_msi.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/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}")
|
||||
Loading…
Add table
Add a link
Reference in a new issue