From 68c01782205d56306086e7e0d387761607431418 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 3 Nov 2017 09:45:08 +0000 Subject: [PATCH] updates: add a special case for "install-" build tags on windows Those will have a ".exe" file extension, not .zip. --- src/common/updates.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/updates.cpp b/src/common/updates.cpp index 8a057b1cf..141330c2c 100644 --- a/src/common/updates.cpp +++ b/src/common/updates.cpp @@ -100,7 +100,7 @@ namespace tools { const char *base = user ? "https://downloads.getmonero.org/" : "http://updates.getmonero.org/"; #ifdef _WIN32 - static const char extension[] = ".zip"; + static const char *extension = strncmp(buildtag.c_str(), "install-", 8) ? ".zip" : ".exe"; #else static const char extension[] = ".tar.bz2"; #endif