Skip to content

Commit

Permalink
Merge pull request #1807
Browse files Browse the repository at this point in the history
Fix missing DLL in windows packaging
  • Loading branch information
BareosBot committed May 17, 2024
2 parents 966375e + 2dff268 commit 92a44c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- stored: fix not counting files correctly in mac jobs when autoxflate is enabled [PR #1745]
- cats: fixes BigSqlQuery header fetching [PR #1746]
- Fix issue #1780 libpng icc profil [PR #1788]
- Fix missing DLL in windows packaging [PR #1807]

[PR #1538]: https://github.com/bareos/bareos/pull/1538
[PR #1581]: https://github.com/bareos/bareos/pull/1581
Expand Down Expand Up @@ -164,5 +165,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[PR #1788]: https://github.com/bareos/bareos/pull/1788
[PR #1795]: https://github.com/bareos/bareos/pull/1795
[PR #1805]: https://github.com/bareos/bareos/pull/1805
[PR #1807]: https://github.com/bareos/bareos/pull/1807
[PR #1808]: https://github.com/bareos/bareos/pull/1808
[unreleased]: https://github.com/bareos/bareos/tree/master
35 changes: 20 additions & 15 deletions core/platforms/win32/winbareos.nsi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
;
; BAREOS - Backup Archiving REcovery Open Sourced
;
; Copyright (C) 2012-2023 Bareos GmbH & Co. KG
; Copyright (C) 2012-2024 Bareos GmbH & Co. KG
;
; This program is Free Software; you can redistribute it and/or
; modify it under the terms of version three of the GNU Affero General Public
Expand Down Expand Up @@ -871,6 +871,7 @@ SectionIn 1 2 3
File "libglib-2.0-0.dll"
File "libintl-8.dll"
File "libharfbuzz-0.dll"
File "libpcre2-8-0.dll"
File "libpcre2-16-0.dll"

SetOutPath "$INSTDIR\platforms"
Expand Down Expand Up @@ -1496,15 +1497,19 @@ done:
File "/oname=$PLUGINSDIR\libintl-8.dll" "libintl-8.dll"
File "/oname=$PLUGINSDIR\libwinpthread-1.dll" "libwinpthread-1.dll"

# one of the two files have to be available depending onwhat openssl Version we sue
File /nonfatal "/oname=$PLUGINSDIR\libcrypto-1_1.dll" "libcrypto-1_1.dll"
File /nonfatal "/oname=$PLUGINSDIR\libcrypto-1_1-x64.dll" "libcrypto-1_1-x64.dll"
# Either one of this two files will be available depending on 32/64 bits.
File /nonfatal "/oname=$PLUGINSDIR\libgcc_s_sjlj-1.dll" "libgcc_s_sjlj-1.dll"
File /nonfatal "/oname=$PLUGINSDIR\libgcc_s_seh-1.dll" "libgcc_s_seh-1.dll"
# Either one of these files will be available depending on 32/64 bits.
!if ${BIT_WIDTH} == '64'
File "/oname=$PLUGINSDIR\libcrypto-3-x64.dll" "libcrypto-3-x64.dll"
File "/oname=$PLUGINSDIR\libssl-3-x64.dll" "libssl-3-x64.dll"
File "/oname=$PLUGINSDIR\libgcc_s_seh-1.dll" "libgcc_s_seh-1.dll"
!else if ${BIT_WIDTH} == '32'
File "/oname=$PLUGINSDIR\libcrypto-3.dll" "libcrypto-3.dll"
File "/oname=$PLUGINSDIR\libssl-3.dll" "libssl-3.dll"
File "/oname=$PLUGINSDIR\libgcc_s_dw2-1.dll" "libgcc_s_dw2-1.dll"
!else
!error "BIT_WIDTH neither 32 nor 64!"
!endif

File /nonfatal "/oname=$PLUGINSDIR\libssl-1_1.dll" "libssl-1_1.dll"
File /nonfatal "/oname=$PLUGINSDIR\libssl-1_1-x64.dll" "libssl-1_1-x64.dll"

File "/oname=$PLUGINSDIR\libstdc++-6.dll" "libstdc++-6.dll"
File "/oname=$PLUGINSDIR\zlib1.dll" "zlib1.dll"
Expand Down Expand Up @@ -1846,14 +1851,13 @@ Function getDatabaseParametersLeave
ReadINIStr $DbPassword "$PLUGINSDIR\databasedialog.ini" "Field 6" "state"
ReadINIStr $DbName "$PLUGINSDIR\databasedialog.ini" "Field 7" "state"
ReadINIStr $DbPort "$PLUGINSDIR\databasedialog.ini" "Field 8" "state"
dbcheckend:

StrCmp $InstallDirector "no" SkipDbCheck # skip DbConnection if not instaling director
StrCmp $InstallDirector "no" SkipDbCheck # skip DbConnection if not installing director

${If} ${SectionIsSelected} ${SEC_DIR_POSTGRES}
!insertmacro CheckDbAdminConnection
MessageBox MB_OK|MB_ICONINFORMATION "Connection to db server with DbAdmin credentials was successful."
${EndIF}
${If} ${SectionIsSelected} ${SEC_DIR_POSTGRES}
!insertmacro CheckDbAdminConnection
MessageBox MB_OK|MB_ICONINFORMATION "Connection to db server with DbAdmin credentials was successful."
${EndIF}
SkipDbCheck:

FunctionEnd
Expand Down Expand Up @@ -2046,6 +2050,7 @@ ConfDeleteSkip:
Delete "$INSTDIR\libglib-2.0-0.dll"
Delete "$INSTDIR\libintl-8.dll"
Delete "$INSTDIR\libharfbuzz-0.dll"
Delete "$INSTDIR\libpcre2-8-0.dll"
Delete "$INSTDIR\libpcre2-16-0.dll"
Delete "$INSTDIR\iconv.dll"
Delete "$INSTDIR\libxml2-2.dll"
Expand Down

0 comments on commit 92a44c7

Please sign in to comment.