Refactor code structure for improved readability and maintainability

This commit is contained in:
claudi 2026-02-19 12:18:08 +01:00
parent aeed311f53
commit 302ec15e15
10 changed files with 2903 additions and 2871 deletions

View file

@ -251,6 +251,7 @@ class WindowsBuilder:
"-ext", "WixUIExtension",
f"-dDistDir={self.dist_dir}",
f"-dSourceDir={self.dist_dir}\\WebDropBridge", # Set SourceDir for Heat-generated files
f"-dResourcesDir={self.project_root}\\resources", # Set ResourcesDir for branding assets
"-o", str(self.build_dir) + "\\",
str(self.build_dir / "WebDropBridge.wxs"),
]
@ -307,6 +308,13 @@ class WindowsBuilder:
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
<Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" />
<!-- Application Icon -->
<Icon Id="AppIcon.ico" SourceFile="$(var.ResourcesDir)\\icons\\app.ico" />
<!-- Embedded branding images for installer UI -->
<Binary Id="BannerBmp" SourceFile="$(var.ResourcesDir)\\icons\\banner.bmp" />
<Binary Id="DialogBmp" SourceFile="$(var.ResourcesDir)\\icons\\background.bmp" />
<!-- Installation UI dialogs -->
<UIRef Id="WixUI_Minimal" />
@ -334,6 +342,8 @@ class WindowsBuilder:
Name="WebDrop Bridge"
Description="Web Drag-and-Drop Bridge"
Target="[INSTALLFOLDER]WebDropBridge.exe"
Icon="AppIcon.ico"
IconIndex="0"
WorkingDirectory="INSTALLFOLDER" />
<RemoveFolder Id="ApplicationProgramsFolderRemove"
On="uninstall" />
@ -352,6 +362,8 @@ class WindowsBuilder:
Name="WebDrop Bridge"
Description="Web Drag-and-Drop Bridge"
Target="[INSTALLFOLDER]WebDropBridge.exe"
Icon="AppIcon.ico"
IconIndex="0"
WorkingDirectory="INSTALLFOLDER" />
<RegistryValue Root="HKCU"
Key="Software\\WebDropBridge"