updates: add a special case for "install-" build tags on windows

Those will have a ".exe" file extension, not .zip.
This commit is contained in:
moneromooo-monero 2017-11-03 09:45:08 +00:00
parent 4146f2e202
commit 68c0178220
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -100,7 +100,7 @@ namespace tools
{ {
const char *base = user ? "https://downloads.getmonero.org/" : "http://updates.getmonero.org/"; const char *base = user ? "https://downloads.getmonero.org/" : "http://updates.getmonero.org/";
#ifdef _WIN32 #ifdef _WIN32
static const char extension[] = ".zip"; static const char *extension = strncmp(buildtag.c_str(), "install-", 8) ? ".zip" : ".exe";
#else #else
static const char extension[] = ".tar.bz2"; static const char extension[] = ".tar.bz2";
#endif #endif