wget2
wget2 copied to clipboard
exe version?
Hi! How to install it on windows?
Yes, it will be nice to officially support Windows.
Yes, it will be nice to officially support Windows.
It has Windows support just fine. But you'll have to built it yourself. But not using MSVC since it lacks some C99 features the Gnu-crowd is so found of. Like Variable Sized Array and stuff.
@gvanem Do we have to build it via mingw64? The readme sais that this is built & tested on Windows. Do you know which file does the build for Windows? Is there a CI/CD setup somewhere?
@dufferzafar Do we have to build it via mingw64?
No idea. But IMHO most GNU-projects suck so hard (with it's auto-tools etc.), it's really difficult to build for Windows.
Therefore I use my own custom Makefile targeting clang-cl
.
Is there a CI/CD setup somewhere?
Not for any Windows targets AFAICS.
@gvanem do you have a working makefile for wget2 as well? Could you please share it? I want to use wget2 on windows.
This works for me only: https://gist.github.com/gvanem/6e574d133106e5d99f6dba1d80e3702b.
I recently added a script contrib/mingw.static
that creates a static .exe file.
My plan is to extend it (e.g. add HTTP/2 support and other dependencies) and finally create and upload the .exe with each CI run.
Any help / testing is highly appreciated.
@gvanem Your makefile looks pretty thorough. But I'd still need a list of dependency packages that I need to install right?
@rockdaboot If you have a static exe lying around that I could directly use on Windows, I'll be greatly indebted!
But I'd still need a list of dependency packages that I need to install right?
Off-course.
@dufferzafar Here is the one that I still had from my last experiment. I locally run it on Linux with wine (automatically done via binfmt). It has GnuTLS support, but not sure if the certificate database on Windows is used without additional setup/configuration.
$ wget2.exe --version
GNU Wget2 2.0.0 - multithreaded metalink/file/website downloader
+digest +https +ssl/gnutls +ipv6 +iri +large-file -nls -ntlm -opie -psl -hsts
-iconv +idn2 -zlib -lzma -brotlidec -zstd -bzip2 -lzip -http2 -gpgme
@rockdaboot It works perfectly well on Windows even with certificate validation. Hope your build script will support http2 anytime soon... Thank you in advance!
@rockdaboot Thanks for this. I'll test it out and let you know.
... Would it be even possible to offer a wget2.exe
32-bit binary as well?
The latest release v2.0.1 exclusively offers a 64-bit Windows binary (many thanks, indeed :+1:), however some of us that are H/W challenged (old but still worthy laptop) are still on 32-bit WinOS... AIUI, with the correct compiler flags, a 32-bit EXE should be able to run on Vista SP2 (and higher) x86 machines... And before anyone suggests it to me, no, old under-resourced x86 machines can't be used for compiling... :disappointed:
@Vangelis66 We don't even have a CI runner for any 32bit built. I assume this would open up a can of worms...
If someone would like to take responsibility for 32bit support, I'd be more than happy to give developer access to the project and to do onboarding.
In the meantime there is the single-threaded wget for 32 bit Windows at https://eternallybored.org/misc/wget/.
You can build your own wget2.exe with docker, see https://github.com/rockdaboot/wget2/tree/master#build-static-wget2exe-on-gnulinux-for-windows
wget2.exe
(stripped, x86, 64-bit, v2.1.0) can be found at https://github.com/rockdaboot/wget2/releases/tag/v2.1.0 .
Just amend the docker file for a 32-bit build @Vangelis66 (should be straight forward, but I am short of time. When you are successful, make the Dockerfile public and/or create a PR).