diff --git a/INSTALL.W32.md b/INSTALL.W32.md index 4fb83b6..b7b032b 100644 --- a/INSTALL.W32.md +++ b/INSTALL.W32.md @@ -3,36 +3,31 @@ ### Building osslsigncode source with MSYS2 MinGW 64-bit and MSYS2 packages: 1) Download and install MSYS2 from https://msys2.github.io/ and follow installation instructions. - Once up and running install even mingw-w64-x86_64-gcc, mingw-w64-x86_64-curl, mingw-w64-x86_64-libgsf. + Once up and running install even mingw-w64-x86_64-gcc, mingw-w64-x86_64-curl. ``` - pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-curl mingw-w64-x86_64-libgsf + pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-curl ``` mingw-w64-x86_64-openssl and mingw-w64-x86_64-zlib packages are installed with dependencies. 2) Run "MSYS2 MinGW 64-bit" and build 64-bit Windows executables. ``` cd osslsigncode-folder - x86_64-w64-mingw32-gcc osslsigncode.c msi.c -o osslsigncode.exe \ - -lcrypto -lssl -lcurl -lgsf-1 -lgobject-2.0 -lglib-2.0 -lxml2 \ - -I 'C:/msys64/mingw64/include/libgsf-1' \ - -I 'C:/msys64/mingw64/include/glib-2.0' \ - -I 'C:/msys64/mingw64/lib/glib-2.0/include' \ - -D 'PACKAGE_STRING="osslsigncode 2.1.0"' \ + x86_64-w64-mingw32-gcc osslsigncode.c msi.c msi.h -o osslsigncode.exe \ + -lcrypto -lssl -lcurl \ + -D 'PACKAGE_STRING="osslsigncode 2.2"' \ -D 'PACKAGE_BUGREPORT="Michal.Trojnara@stunnel.org"' \ - -D ENABLE_CURL \ - -D WITH_GSF + -D ENABLE_CURL ``` 3) Run "Command prompt" and include "c:\msys64\mingw64\bin" folder as part of the path. ``` path=%path%;c:\msys64\mingw64\bin cd osslsigncode-folder - osslsigncode.exe -v - osslsigncode 2.1.0, using: - OpenSSL 1.1.1g 21 Apr 2020 - libcurl/7.70.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 - libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.40.0 libgsf 1.14.46 + osslsigncode 2.2, using: + OpenSSL 1.1.1g 21 Apr 2020 (Library: OpenSSL 1.1.1g 21 Apr 2020) + libcurl/7.70.0 OpenSSL/1.1.1g (Schannel) zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 + libpsl/0.21.0 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.40.0 ``` @@ -68,19 +63,20 @@ --disable-ftp --disable-tftp --disable-file --disable-dict \ --disable-telnet --disable-imap --disable-smb --disable-smtp \ --disable-gopher --disable-pop --disable-pop3 --disable-rtsp \ - --disable-ldap --disable-ldaps --disable-unix-sockets --disable-pthreads + --disable-ldap --disable-ldaps --disable-unix-sockets \ + --disable-pthreads --without-zstd make && make install ``` 3) Build 64-bit Windows executables. ``` cd osslsigncode-folder - x86_64-w64-mingw32-gcc osslsigncode.c -o osslsigncode.exe \ + x86_64-w64-mingw32-gcc osslsigncode.c msi.c msi.h -o osslsigncode.exe \ -L 'C:/OpenSSL/lib/' -lcrypto -lssl \ -I 'C:/OpenSSL/include/' \ -L 'C:/curl/lib' -lcurl \ -I 'C:/curl/include' \ - -D 'PACKAGE_STRING="osslsigncode 2.1.0"' \ + -D 'PACKAGE_STRING="osslsigncode 2.2"' \ -D 'PACKAGE_BUGREPORT="Michal.Trojnara@stunnel.org"' \ -D ENABLE_CURL ``` @@ -94,8 +90,7 @@ copy C:\msys64\mingw64\bin\zlib1.dll osslsigncode.exe -v - osslsigncode 2.1.0, using: - OpenSSL 1.1.1g 21 Apr 2020 - libcurl/7.70.0 OpenSSL/1.1.1g zlib/1.2.11 - no libgsf available + osslsigncode 2.2, using: + OpenSSL 1.1.1k 25 Mar 2021 (Library: OpenSSL 1.1.1k 25 Mar 2021) + libcurl/7.78.0 OpenSSL/1.1.1k zlib/1.2.11 ```