Skip to content

Added the logic to package the libusb dll with the userspace installer#16

Merged
Chenxi Han (5656hcx) merged 3 commits into
mainfrom
libusb-dll-package-integration
Jun 11, 2026
Merged

Added the logic to package the libusb dll with the userspace installer#16
Chenxi Han (5656hcx) merged 3 commits into
mainfrom
libusb-dll-package-integration

Conversation

@tejas-sharma27

Copy link
Copy Markdown
Contributor

Support for packaging architecture-specific libusb binaries into the installer payload. Instead of bundling all architectures, the build process now selectively includes only the required libusb/ directory based on an input parameter.
Tested by running the installer locally and verifying that payload.zip contains the directory.

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>

@5656hcx Chenxi Han (5656hcx) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good changes. Outputs as expected.

One major concern I have:
Pre-compiled binary DLLs committed directly to the repository.

Adding binaries to git inflates the repository size and make history tracking difficult. Also, there is no source of the binaries, is it generated by ourself or downloaded from libusb?

I will recommend downloading libusb at build time, like

$libusbVersion = "1.0.27"
$libusbUrl = "https://github.com/libusb/libusb/releases/download/v$libusbVersion/libusb-$libusbVersion-binaries.7z"
# Download, optionally verify SHA-256, and extract libusb/<arch>/dll/libusb-1.0.dll

Or alternatively, we download the .dll manually somewhere at build time, then build script copies it to the payload.

Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
… the libusb dlls during build time

Signed-off-by: Tejas Sharma <tejashar@qti.qualcomm.com>
@tejas-sharma27

Copy link
Copy Markdown
Contributor Author

I have removed the libusb dlls directory from the commit. As suggested by Chenxi Han (@5656hcx), I have added the logic to download the libusb during build time and use the downloaded zip to create the libusb directory from which staging files will be picked.

Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
Comment thread src/windows/build/build-installer.ps1 Outdated
@5656hcx Chenxi Han (5656hcx) self-requested a review June 11, 2026 18:17
@5656hcx Chenxi Han (5656hcx) force-pushed the libusb-dll-package-integration branch from 6917910 to 4f96781 Compare June 11, 2026 21:01
Signed-off-by: Chenxi Han <chehan@qti.qualcomm.com>
@5656hcx Chenxi Han (5656hcx) force-pushed the libusb-dll-package-integration branch from 4f96781 to 46504c8 Compare June 11, 2026 21:16
@5656hcx Chenxi Han (5656hcx) merged commit 99ccfb0 into main Jun 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants