Skip to content

Commit

Permalink
Merge pull request #45 from stefanb2/topic-add-libcrypto-to-windows-i…
Browse files Browse the repository at this point in the history
…nstaller

build: manually copy libcrypto DLL to windeploy
  • Loading branch information
bkueng authored Nov 17, 2023
2 parents 3c0dfa5 + 1c9e0fb commit dca6082
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
WINDEPLOY_DIR: ${{ runner.temp }}/windeploy
NSIS_DIR: ${{ runner.temp }}/nsis
run: |
if (Test-Path ${{ runner.temp }}/build) { remove-item -recurse -force ${{ runner.temp }}/build }
if (test-path ${{ runner.temp }}/build) { remove-item -recurse -force ${{ runner.temp }}/build }
cmake -B ${{ runner.temp }}/build .
- name: Build
Expand All @@ -48,17 +48,20 @@ jobs:
- name: Install
run: |
if (Test-Path ${{ runner.temp }}/windeploy) { remove-item -recurse -force ${{ runner.temp }}/windeploy }
if (test-path ${{ runner.temp }}/windeploy) { remove-item -recurse -force ${{ runner.temp }}/windeploy }
cmake --install ${{ runner.temp }}/build --prefix ${{ runner.temp }}/windeploy
- name: Run windeployqt
run: |
$env:VCINSTALLDIR="$(vswhere -latest -property installationPath)/VC"
$env:DUMPBIN_EXE="$(vswhere -latest -find **/hostx64/x64/dumpbin.exe -sort | select -last 1)"
cmake --build ${{ runner.temp }}/build --config Release --target windeployqt
$env:LIBCRYPTO_NAME="$( (& "${env:DUMPBIN_EXE}" /dependents ${{ runner.temp }}/windeploy/bin/qMasterPassword.exe | select-string -pattern "libcrypto-.*\.dll").toString().trim() )"
copy -verbose -force -path $(get-command "${env:LIBCRYPTO_NAME}").Source -destination ${{ runner.temp }}/windeploy/bin/
- name: Build installer package
run: |
if (Test-Path ${{ runner.temp }}/nsis) { remove-item -recurse -force ${{ runner.temp }}/nsis }
if (test-path ${{ runner.temp }}/nsis) { remove-item -recurse -force ${{ runner.temp }}/nsis }
mkdir -path ${{ runner.temp }}/nsis
cmake --build ${{ runner.temp }}/build --config Release --target makensis
Expand Down

0 comments on commit dca6082

Please sign in to comment.