Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: manually copy libcrypto DLL to windeploy #45

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

stefanb2
Copy link
Contributor

Unfortunately windeployqt doesn't handle non-Qt DLLs. To avoid that the user has to install OpenSSL by hand, find the DLL on the GitHub runner system and copy it manually to the windeploy/bin directory.

@stefanb2
Copy link
Contributor Author

stefanb2 commented Nov 16, 2023

Ah yes, that's not going to work:

Dump of file bin\qMasterPassword.exe

File Type: EXECUTABLE IMAGE

  Image has the following dependencies:

    libcrypto-1_1-x64.dll

Unfortunately windeployqt doesn't handle non-Qt DLLs. To avoid that the
user has to install OpenSSL by hand, find the DLL on the GitHub runner
system and copy it manually to the windeploy/bin directory.
@stefanb2 stefanb2 force-pushed the topic-add-libcrypto-to-windows-installer branch from 6ec0390 to 7715a12 Compare November 16, 2023 09:40
@stefanb2 stefanb2 marked this pull request as ready for review November 16, 2023 09:47
This removes the hard-coded libcrypte DLL name.

- locate path to dumpbin.exe in Visual Studio installation
- execute dumpbin on installed binary and filter libcrypto DLL name from
  output. This Powershell command will fail if no match is found.
- replace the hard-coded libcrypto DLL name in the copy command
@stefanb2 stefanb2 force-pushed the topic-add-libcrypto-to-windows-installer branch from c8817e1 to 1c9e0fb Compare November 17, 2023 08:09
@stefanb2
Copy link
Contributor Author

Figured out the Powershell mojo to extract the libcrypto DLL name from the installed binary. Should now work even when the Windows/Visual Studio installation on the GitHub runners changes.

Copy link
Owner

@bkueng bkueng left a comment

Choose a reason for hiding this comment

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

Thanks!

@bkueng bkueng merged commit dca6082 into bkueng:main Nov 17, 2023
16 checks passed
@stefanb2 stefanb2 deleted the topic-add-libcrypto-to-windows-installer branch November 17, 2023 16:25
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