Skip to content

Commit

Permalink
Version 1.1 is out of beta
Browse files Browse the repository at this point in the history
  • Loading branch information
erengy committed Jun 19, 2014
1 parent cbd9067 commit 2c2df4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/taiga/update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ void UpdateHelper::Cancel() {
}

bool UpdateHelper::Check() {
bool is_prerelease = !Taiga.version.prerelease_identifiers.empty();

HttpRequest http_request;
http_request.url.host = L"taiga.erengy.com";
http_request.url.path = L"/update.php";
http_request.url.query[L"channel"] = L"beta";
http_request.url.query[L"channel"] = is_prerelease ? L"beta" : L"stable";
http_request.url.query[L"check"] = ui::DlgMain.IsWindow() ? L"manual" : L"auto";
http_request.url.query[L"version"] = std::wstring(Taiga.version);
http_request.url.query[L"service"] = GetCurrentService()->canonical_name();
Expand Down
2 changes: 1 addition & 1 deletion src/taiga/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#define TAIGA_VERSION_MAJOR 1
#define TAIGA_VERSION_MINOR 1
#define TAIGA_VERSION_PATCH 0
#define TAIGA_VERSION_PRE L"beta"
#define TAIGA_VERSION_PRE L""
#define TAIGA_VERSION_BUILD 0

#define VERSION_VALUE_DIGITAL TAIGA_VERSION_MAJOR, TAIGA_VERSION_MINOR, TAIGA_VERSION_PATCH, TAIGA_VERSION_BUILD
Expand Down

0 comments on commit 2c2df4b

Please sign in to comment.