Skip to content

Commit

Permalink
Add missing openssl libs to windows package. Fix #173
Browse files Browse the repository at this point in the history
  • Loading branch information
DamirPorobic committed Jul 15, 2019
1 parent ff321bf commit b03eee7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Fixed: AppImage update fails with "None of the artifacts matched the pattern in the update information". ([#166](https://github.com/DamirPorobic/ksnip/issues/166))
* Fixed: Wildcards in path are not resolved. ([#168](https://github.com/DamirPorobic/ksnip/issues/168))
* Fixed: CLI arg --rectarea doesn't work. ([#170](https://github.com/DamirPorobic/ksnip/issues/170))
* Fixed: Imgur Uploader on windows issue. ([#173](https://github.com/DamirPorobic/ksnip/issues/173))
* Fixed kImageAnnotator: Unable to select number annotation when clicking on the number without background. ([#46](https://github.com/DamirPorobic/kImageAnnotator/issues/46))

## Release 1.5.0
Expand Down
5 changes: 4 additions & 1 deletion ci/scripts/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ elif [[ "${BUILD_TYPE}" == "rpm" ]]; then
elif [[ "${BUILD_TYPE}" == "exe" ]]; then
source ci/scripts/exe/bootstrap_envvars.sh

echo "--> Download Qt"
echo "--> Download Dependencies"

QT_BASE_URL="https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt5_563/qt.563.win32_msvc2015/5.6.3-0-201709190903"
wget --quiet -O qtbase.7z "${QT_BASE_URL}qtbase-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z"
wget --quiet -O qtwinextras.7z "${QT_BASE_URL}qtwinextras-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z"
wget --quiet -O qttools.7z "${QT_BASE_URL}qttools-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z"
wget --quiet -O qttranslations.7z "${QT_BASE_URL}qttranslations-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z"
wget --quiet -O qtsvg.7z "${QT_BASE_URL}qtsvg-Windows-Windows_10-MSVC2015-Windows-Windows_10-X86.7z"
wget --quiet -O openssl.zip "https://indy.fulgan.com/SSL/openssl-1.0.2q-i386-win32.zip"

7z x qtbase.7z -o/c/qt
7z x qtwinextras.7z -o/c/qt
7z x qttools.7z -o/c/qt
7z x qttranslations.7z -o/c/qt
7z x qtsvg.7z -o/c/qt

7z x openssl.zip -o/c/openssl

# windeployqt fails to find the binaries so we link the binaries where its looking for it
WINDEPLOYQT_QT_DIR="/c/Users/qt/work"
Expand Down
8 changes: 4 additions & 4 deletions ci/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ elif [[ "${BUILD_TYPE}" == "exe" ]]; then
cmake .. -G"NMake Makefiles" -DCMAKE_CXX_COMPILER=cl -DVERSION_SUFIX=${VERSION_SUFFIX} -DBUILD_NUMBER=${BUILD_NUMBER} -DCMAKE_BUILD_TYPE=Release
nmake
cd ..

echo "--> Package Windows"
mkdir packageDir
mv build/src/ksnip*.exe packageDir/ksnip.exe
windeployqt.exe packageDir/ksnip.exe
cp build/translations/ksnip_*.qm ./packageDir/translations/
7z a ksnip-${VERSION}-windows.zip ./packageDir/*

echo "--> Check for OpenSSL Libs"
sudo find /c -name "ssleay32.dll" -o -name "libeay32.dll" 2>&-
cp /c/openssl/libeay32.dll ./packageDir/
cp /c/openssl/ssleay32.dll ./packageDir/

7z a ksnip-${VERSION}-windows.zip ./packageDir/*
elif [[ "${BUILD_TYPE}" == "app" ]]; then
mkdir build && cd build
cmake .. -DVERSION_SUFIX=${VERSION_SUFFIX} -DBUILD_NUMBER=${BUILD_NUMBER} -DCMAKE_BUILD_TYPE=Release
Expand Down
2 changes: 1 addition & 1 deletion ci/scripts/rpm/build_rpm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cd ksnip-*
rpmbuild -ba SPECS/ksnip-*.spec --define '_topdir %(pwd)'
rpmbuild -ba SPECS/ksnip-*.spec --define '_topdir %(pwd)'
16 changes: 8 additions & 8 deletions ci/scripts/rpm/setup_rpm_directory_structure.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

echo "--> Create directory and everything we need to deliver"
mkdir ksnip-$VERSION_NUMBER
cp -R CMakeLists.txt cmake/ desktop/ icons/ LICENSE README.md src/ translations/ ksnip-$VERSION_NUMBER/
mkdir ksnip-${VERSION_NUMBER}
cp -R CMakeLists.txt cmake/ desktop/ icons/ LICENSE README.md src/ translations/ ksnip-${VERSION_NUMBER}/
echo "--> Package directory"
tar -cvzf ksnip-$VERSION_NUMBER.tar.gz ksnip-$VERSION_NUMBER/
echo "--> Copy package to SOURCE directory"
mkdir ksnip-$VERSION_NUMBER/SOURCES
cp ksnip-$VERSION_NUMBER.tar.gz ksnip-$VERSION_NUMBER/SOURCES/
tar -cvzf ksnip-${VERSION_NUMBER}.tar.gz ksnip-${VERSION_NUMBER}/
echo "--> Move package to SOURCE directory"
mkdir ksnip-${VERSION_NUMBER}/SOURCES
mv ksnip-${VERSION_NUMBER}.tar.gz ksnip-${VERSION_NUMBER}/SOURCES/
echo "--> Copy spec file to SPEC directory"
mkdir ksnip-$VERSION_NUMBER/SPECS
cp ksnip.spec ksnip-$VERSION_NUMBER/SPECS/ksnip-$VERSION_NUMBER.spec
mkdir ksnip-${VERSION_NUMBER}/SPECS
cp ksnip.spec ksnip-${VERSION_NUMBER}/SPECS/ksnip-${VERSION_NUMBER}.spec
2 changes: 1 addition & 1 deletion ci/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ elif [[ "${BUILD_TYPE}" == "rpm" ]]; then
source ci/scripts/rpm/setup_spec_file.sh
source ci/scripts/rpm/setup_rpm_directory_structure.sh

sudo chown -R root:root ksnip-$VERSION_NUMBER
sudo chown -R root:root ksnip-${VERSION_NUMBER}
elif [[ "${BUILD_TYPE}" == "exe" ]]; then
source ci/scripts/exe/setup_dependencies_windows.sh
elif [[ "${BUILD_TYPE}" == "app" ]]; then
Expand Down

0 comments on commit b03eee7

Please sign in to comment.