Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

change update url

  • Loading branch information...
commit 7addcb33992ce327fcbe40ccb0f18705614a8e0b 1 parent 902bf52
@iptton iptton authored
Showing with 10 additions and 3 deletions.
  1. +2 −1  Rythem.pro
  2. +2 −2 ryupdatechecker.cpp
  3. +6 −0 ryupdatechecker.h
View
3  Rythem.pro
@@ -103,7 +103,8 @@ mac:CONFIG += app_bundle
win32:LIBS += D:\QtSDK\mingw\lib\libwininet.a
-mac:LIBS += -framework SystemConfiguration -framework coreFoundation -lz
+#mac:LIBS += -framework SystemConfiguration -framework coreFoundation -lz
+mac:LIBS += -lz
RESOURCES += \
httpfiles.qrc
View
4 ryupdatechecker.cpp
@@ -5,7 +5,7 @@
RyUpdateChecker::RyUpdateChecker(QObject *parent) :
QObject(parent){
_isChecking = false;
- //manager.setProxy(QNetworkProxy(QNetworkProxy::HttpProxy,"127.0.0.1",8889));
+ manager.setProxy(QNetworkProxy(QNetworkProxy::HttpProxy,"127.0.0.1",8889));
}
void RyUpdateChecker::check(QString url, QString currentVersion){
@@ -15,7 +15,7 @@ void RyUpdateChecker::check(QString url, QString currentVersion){
_isChecking = true;
this->_currentVersion = currentVersion;
connect(&manager,SIGNAL(finished(QNetworkReply*)),SLOT(finished(QNetworkReply*)));
- manager.get(QNetworkRequest(QUrl(url)));
+ manager.get(QNetworkRequest(QUrl(url.append("=")+currentVersion)));
}
bool RyUpdateChecker::isLargeThanCurrent(const QString &otherVersion,bool* isOk){
View
6 ryupdatechecker.h
@@ -4,7 +4,13 @@
#include <QtCore>
#include <QtNetwork>
+#ifdef Q_OS_MAC
+#define CURRENT_VERSION "0.5.09.13"
+#endif
+#ifdef Q_OS_WIN
#define CURRENT_VERSION "0.5.08.28"
+#endif
+
#define RYTHEM_UPDATE_PREFIX "http://rythem.alloyteam.com/update.php?"
#define RYTHEM_UPDATE_URL(sys) RYTHEM_UPDATE_PREFIX # sys
Please sign in to comment.
Something went wrong with that request. Please try again.