mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-09 14:27:56 +00:00
Add make dist target
This commit is contained in:
parent
3529c5c7a0
commit
921512e51d
@ -2,3 +2,12 @@ TEMPLATE = subdirs
|
|||||||
|
|
||||||
SUBDIRS += src
|
SUBDIRS += src
|
||||||
|
|
||||||
|
include(version.pri)
|
||||||
|
|
||||||
|
# Dist
|
||||||
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}/ &&
|
||||||
|
dist.commands += svn export . ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
||||||
|
dist.commands += tar zcpvf ../$${PROJECT_NAME}-$${PROJECT_VERSION}.tar.gz ../$${PROJECT_NAME}-$${PROJECT_VERSION} &&
|
||||||
|
dist.commands += rm -fR ../$${PROJECT_NAME}-$${PROJECT_VERSION}
|
||||||
|
|
||||||
|
QMAKE_EXTRA_TARGETS += dist
|
||||||
|
@ -87,7 +87,6 @@ QBtSession* QBtSession::m_instance = 0;
|
|||||||
const qreal QBtSession::MAX_RATIO = 9999.;
|
const qreal QBtSession::MAX_RATIO = 9999.;
|
||||||
|
|
||||||
const int MAX_TRACKER_ERRORS = 2;
|
const int MAX_TRACKER_ERRORS = 2;
|
||||||
enum VersionType { NORMAL,ALPHA,BETA,RELEASE_CANDIDATE,DEVEL };
|
|
||||||
|
|
||||||
// Main constructor
|
// Main constructor
|
||||||
QBtSession::QBtSession()
|
QBtSession::QBtSession()
|
||||||
@ -113,7 +112,7 @@ QBtSession::QBtSession()
|
|||||||
version << VERSION_MAJOR;
|
version << VERSION_MAJOR;
|
||||||
version << VERSION_MINOR;
|
version << VERSION_MINOR;
|
||||||
version << VERSION_BUGFIX;
|
version << VERSION_BUGFIX;
|
||||||
version << VERSION_TYPE;
|
version << 0;
|
||||||
const QString peer_id = "qB";
|
const QString peer_id = "qB";
|
||||||
// Construct session
|
// Construct session
|
||||||
s = new session(fingerprint(peer_id.toLocal8Bit().constData(), version.at(0), version.at(1), version.at(2), version.at(3)), 0);
|
s = new session(fingerprint(peer_id.toLocal8Bit().constData(), version.at(0), version.at(1), version.at(2), version.at(3)), 0);
|
||||||
|
21
version.pri
21
version.pri
@ -1,11 +1,12 @@
|
|||||||
os2 {
|
PROJECT_NAME = qbittorrent
|
||||||
DEFINES += VERSION=\'\"v2.8.0\"\'
|
PROJECT_VERSION = 2.9.0alpha
|
||||||
} else {
|
|
||||||
DEFINES += VERSION=\\\"v2.8.0\\\"
|
|
||||||
}
|
|
||||||
DEFINES += VERSION_MAJOR=2
|
|
||||||
DEFINES += VERSION_MINOR=8
|
|
||||||
DEFINES += VERSION_BUGFIX=0
|
|
||||||
|
|
||||||
# NORMAL,ALPHA,BETA,RELEASE_CANDIDATE,DEVEL
|
os2 {
|
||||||
DEFINES += VERSION_TYPE=NORMAL
|
DEFINES += VERSION=\'\"v$${VERSION}\"\'
|
||||||
|
} else {
|
||||||
|
DEFINES += VERSION=\\\"v$${VERSION}\\\"
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINES += VERSION_MAJOR=2
|
||||||
|
DEFINES += VERSION_MINOR=9
|
||||||
|
DEFINES += VERSION_BUGFIX=0
|
||||||
|
Loading…
Reference in New Issue
Block a user