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

File diff suppressed because one or more lines are too long

View file

@ -7,6 +7,13 @@
<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" />
@ -34,6 +41,8 @@
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" />
@ -52,6 +61,8 @@
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"

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

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"

1
build/test.txt Normal file
View file

@ -0,0 +1 @@
WebDropBridge.wxs

Binary file not shown.

Before

Width:  |  Height:  |  Size: 120 KiB

After

Width:  |  Height:  |  Size: 164 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 356 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

BIN
resources/icons/banner.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB