updates: fix source code URL on _WIN32

pull/235/head
selsta 5 years ago
parent f971068363
commit 7ac7d5d32f
Signed by untrusted user: selsta
GPG Key ID: 2EA0A99A8B07AE5E

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

Loading…
Cancel
Save