diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-03 09:45:08 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-03 09:45:08 +0000 |
commit | 68c01782205d56306086e7e0d387761607431418 (patch) | |
tree | 1b4695a23e12b7b6c4026c9852536c1042448e84 | |
parent | Merge pull request #2666 (diff) | |
download | monero-68c01782205d56306086e7e0d387761607431418.tar.xz |
updates: add a special case for "install-" build tags on windows
Those will have a ".exe" file extension, not .zip.
-rw-r--r-- | src/common/updates.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |