Refactor code structure for improved readability and maintainability
This commit is contained in:
parent
aeed311f53
commit
302ec15e15
10 changed files with 2903 additions and 2871 deletions
File diff suppressed because one or more lines are too long
|
|
@ -8,6 +8,13 @@
|
||||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
||||||
<Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" />
|
<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 -->
|
<!-- Installation UI dialogs -->
|
||||||
<UIRef Id="WixUI_Minimal" />
|
<UIRef Id="WixUI_Minimal" />
|
||||||
<UIRef Id="WixUI_ErrorProgressText" />
|
<UIRef Id="WixUI_ErrorProgressText" />
|
||||||
|
|
@ -34,6 +41,8 @@
|
||||||
Name="WebDrop Bridge"
|
Name="WebDrop Bridge"
|
||||||
Description="Web Drag-and-Drop Bridge"
|
Description="Web Drag-and-Drop Bridge"
|
||||||
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
||||||
|
Icon="AppIcon.ico"
|
||||||
|
IconIndex="0"
|
||||||
WorkingDirectory="INSTALLFOLDER" />
|
WorkingDirectory="INSTALLFOLDER" />
|
||||||
<RemoveFolder Id="ApplicationProgramsFolderRemove"
|
<RemoveFolder Id="ApplicationProgramsFolderRemove"
|
||||||
On="uninstall" />
|
On="uninstall" />
|
||||||
|
|
@ -52,6 +61,8 @@
|
||||||
Name="WebDrop Bridge"
|
Name="WebDrop Bridge"
|
||||||
Description="Web Drag-and-Drop Bridge"
|
Description="Web Drag-and-Drop Bridge"
|
||||||
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
||||||
|
Icon="AppIcon.ico"
|
||||||
|
IconIndex="0"
|
||||||
WorkingDirectory="INSTALLFOLDER" />
|
WorkingDirectory="INSTALLFOLDER" />
|
||||||
<RegistryValue Root="HKCU"
|
<RegistryValue Root="HKCU"
|
||||||
Key="Software\WebDropBridge"
|
Key="Software\WebDropBridge"
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
|
@ -251,6 +251,7 @@ class WindowsBuilder:
|
||||||
"-ext", "WixUIExtension",
|
"-ext", "WixUIExtension",
|
||||||
f"-dDistDir={self.dist_dir}",
|
f"-dDistDir={self.dist_dir}",
|
||||||
f"-dSourceDir={self.dist_dir}\\WebDropBridge", # Set SourceDir for Heat-generated files
|
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) + "\\",
|
"-o", str(self.build_dir) + "\\",
|
||||||
str(self.build_dir / "WebDropBridge.wxs"),
|
str(self.build_dir / "WebDropBridge.wxs"),
|
||||||
]
|
]
|
||||||
|
|
@ -308,6 +309,13 @@ class WindowsBuilder:
|
||||||
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Platform="x64" />
|
||||||
<Media Id="1" Cabinet="WebDropBridge.cab" EmbedCab="yes" />
|
<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 -->
|
<!-- Installation UI dialogs -->
|
||||||
<UIRef Id="WixUI_Minimal" />
|
<UIRef Id="WixUI_Minimal" />
|
||||||
<UIRef Id="WixUI_ErrorProgressText" />
|
<UIRef Id="WixUI_ErrorProgressText" />
|
||||||
|
|
@ -334,6 +342,8 @@ class WindowsBuilder:
|
||||||
Name="WebDrop Bridge"
|
Name="WebDrop Bridge"
|
||||||
Description="Web Drag-and-Drop Bridge"
|
Description="Web Drag-and-Drop Bridge"
|
||||||
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
||||||
|
Icon="AppIcon.ico"
|
||||||
|
IconIndex="0"
|
||||||
WorkingDirectory="INSTALLFOLDER" />
|
WorkingDirectory="INSTALLFOLDER" />
|
||||||
<RemoveFolder Id="ApplicationProgramsFolderRemove"
|
<RemoveFolder Id="ApplicationProgramsFolderRemove"
|
||||||
On="uninstall" />
|
On="uninstall" />
|
||||||
|
|
@ -352,6 +362,8 @@ class WindowsBuilder:
|
||||||
Name="WebDrop Bridge"
|
Name="WebDrop Bridge"
|
||||||
Description="Web Drag-and-Drop Bridge"
|
Description="Web Drag-and-Drop Bridge"
|
||||||
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
Target="[INSTALLFOLDER]WebDropBridge.exe"
|
||||||
|
Icon="AppIcon.ico"
|
||||||
|
IconIndex="0"
|
||||||
WorkingDirectory="INSTALLFOLDER" />
|
WorkingDirectory="INSTALLFOLDER" />
|
||||||
<RegistryValue Root="HKCU"
|
<RegistryValue Root="HKCU"
|
||||||
Key="Software\\WebDropBridge"
|
Key="Software\\WebDropBridge"
|
||||||
|
|
|
||||||
1
build/test.txt
Normal file
1
build/test.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
WebDropBridge.wxs
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 164 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 356 KiB |
BIN
resources/icons/background.bmp
Normal file
BIN
resources/icons/background.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 328 KiB |
BIN
resources/icons/banner.bmp
Normal file
BIN
resources/icons/banner.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 83 KiB |
Loading…
Add table
Add a link
Reference in a new issue