mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #507, adjusted resource subproject
This commit is contained in:
committed by
Mathew Sutcliffe
parent
6dd8fb333e
commit
02733cacb7
@@ -1,61 +0,0 @@
|
||||
{
|
||||
"bootstrap": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public/bootstrap"
|
||||
},
|
||||
{
|
||||
"url": "http://ubuntu12/swiftdatastore/public/bootstrap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dbHttpPort": 80,
|
||||
"dbHttpsPort": 443,
|
||||
"dbRootDirectory": {
|
||||
"url": "http://ubuntu12/swiftdatastore/public"
|
||||
},
|
||||
"fsdTestServers": {
|
||||
"containerbase": [
|
||||
{
|
||||
"address": "vatsim-germany.org",
|
||||
"description": "swift Testserver",
|
||||
"isAcceptingConnections": true,
|
||||
"name": "swift",
|
||||
"port": 6809,
|
||||
"user": {
|
||||
"callsign": {
|
||||
"callsign": "",
|
||||
"callsignAsSet": "",
|
||||
"telephonyDesignator": "",
|
||||
"typeHint": 0
|
||||
},
|
||||
"email": "",
|
||||
"homebase": {
|
||||
"icaoCode": ""
|
||||
},
|
||||
"id": "1234567",
|
||||
"password": "123456",
|
||||
"realname": "Swift Test User"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"swiftDbDataFiles": {
|
||||
"containerbase": [
|
||||
]
|
||||
},
|
||||
"timestampMSecsSinceEpoch": 1445201830000,
|
||||
"vatsimBookings": {
|
||||
"url": "http://vatbook.euroutepro.com/xml2.php"
|
||||
},
|
||||
"vatsimDataFile": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://info.vroute.net/vatsim-data.txt"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vatsimMetars": {
|
||||
"url": "http://metar.vatsim.net/metar.php"
|
||||
}
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
{
|
||||
"bootstrap": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public/bootstrap"
|
||||
},
|
||||
{
|
||||
"url": "http://ubuntu12/swiftdatastore/public/bootstrap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dbHttpPort": 5080,
|
||||
"dbHttpsPort": 50443,
|
||||
"dbRootDirectory": {
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public"
|
||||
},
|
||||
"fsdTestServers": {
|
||||
"containerbase": [
|
||||
{
|
||||
"address": "vatsim-germany.org",
|
||||
"description": "swift Testserver",
|
||||
"isAcceptingConnections": true,
|
||||
"name": "swift",
|
||||
"port": 6809,
|
||||
"user": {
|
||||
"callsign": {
|
||||
"callsign": "",
|
||||
"callsignAsSet": "",
|
||||
"telephonyDesignator": "",
|
||||
"typeHint": 0
|
||||
},
|
||||
"email": "",
|
||||
"homebase": {
|
||||
"icaoCode": ""
|
||||
},
|
||||
"id": "1234567",
|
||||
"password": "123456",
|
||||
"realname": "Swift Test User"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"swiftDbDataFiles": {
|
||||
"containerbase": [
|
||||
]
|
||||
},
|
||||
"timestampMSecsSinceEpoch": 1445201830000,
|
||||
"vatsimBookings": {
|
||||
"url": "http://vatbook.euroutepro.com/xml2.php"
|
||||
},
|
||||
"vatsimDataFile": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://info.vroute.net/vatsim-data.txt"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vatsimMetars": {
|
||||
"url": "http://metar.vatsim.net/metar.php"
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,10 @@
|
||||
{
|
||||
"bootstrap": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public/bootstrap"
|
||||
},
|
||||
{
|
||||
"url": "http://ubuntu12/swiftdatastore/public/bootstrap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dbHttpPort": 5080,
|
||||
"dbHttpsPort": 50443,
|
||||
"dbRootDirectory": {
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public"
|
||||
"dbHttpPort": 80,
|
||||
"dbHttpsPort": 443,
|
||||
"dbRootDirectoryUrl": {
|
||||
"url": "http://ubuntu12/swiftdatastore/public"
|
||||
},
|
||||
"development": false,
|
||||
"fsdTestServers": {
|
||||
"containerbase": [
|
||||
{
|
||||
@@ -40,22 +31,35 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"swiftDbDataFiles": {
|
||||
"sharedUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public/shared"
|
||||
},
|
||||
{
|
||||
"url": "http://ubuntu12/public/bootstrap/shared"
|
||||
}
|
||||
]
|
||||
},
|
||||
"timestampMSecsSinceEpoch": 1445201830000,
|
||||
"vatsimBookings": {
|
||||
"timestampMSecsSinceEpoch": 0,
|
||||
"vatsimBookingsUrl": {
|
||||
"url": "http://vatbook.euroutepro.com/xml2.php"
|
||||
},
|
||||
"vatsimDataFile": {
|
||||
"vatsimDataFileUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://info.vroute.net/vatsim-data.txt"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vatsimMetars": {
|
||||
"vatsimMetarsUrl": {
|
||||
"url": "http://metar.vatsim.net/metar.php"
|
||||
},
|
||||
"newsUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://swift-project.org/"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
39
resources/shared/bootstrap/bootstrap.json
Normal file
39
resources/shared/bootstrap/bootstrap.json
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"dbHttpPort": 5080,
|
||||
"dbHttpsPort": 50443,
|
||||
"dbRootDirectoryUrl": {
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public"
|
||||
},
|
||||
"development": false,
|
||||
"sharedUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "https://vatsim-germany.org:50443/mapping/public/shared"
|
||||
},
|
||||
{
|
||||
"url": "http://ubuntu12/public/bootstrap/shared"
|
||||
}
|
||||
]
|
||||
},
|
||||
"timestampMSecsSinceEpoch": 0,
|
||||
"vatsimBookingsUrl": {
|
||||
"url": "http://vatbook.euroutepro.com/xml2.php"
|
||||
},
|
||||
"vatsimDataFileUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://info.vroute.net/vatsim-data.txt"
|
||||
}
|
||||
]
|
||||
},
|
||||
"vatsimMetarsUrl": {
|
||||
"url": "http://metar.vatsim.net/metar.php"
|
||||
},
|
||||
"newsUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://swift-project.org/"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
22
resources/shared/download/download.json
Normal file
22
resources/shared/download/download.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"development": false,
|
||||
"downloadsBetaUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://swift-project.org/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"downloadsStableUrls": {
|
||||
"containerbase": [
|
||||
{
|
||||
"url": "http://swift-project.org/"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lastSupportedVersionBeta": "0.6",
|
||||
"lastSupportedVersionStable": "0.6",
|
||||
"latestVersionBeta": "0.6.1",
|
||||
"latestVersionStable": "0.6.1",
|
||||
"timestampMSecsSinceEpoch": 0
|
||||
}
|
||||
@@ -6,26 +6,23 @@ CONFIG -= qt
|
||||
|
||||
OTHER_FILES += data/images/flags/*.png
|
||||
OTHER_FILES += data/images/airlines/*.png
|
||||
OTHER_FILES += swiftDB/*.*
|
||||
OTHER_FILES += bootstrap/productive/*.*
|
||||
OTHER_FILES += bootstrap/development/*.*
|
||||
OTHER_FILES += local.env.template/*.*
|
||||
OTHER_FILES += local.env.template/bootstrap/*.*
|
||||
OTHER_FILES += local.env.template/bootstrap/0.6/*.*
|
||||
OTHER_FILES += shared//bootstrap/*.*
|
||||
OTHER_FILES += shared/dbdata/*.*
|
||||
OTHER_FILES += shared/download/*.*
|
||||
|
||||
COPY_FILES += $$PWD/data/images/flags/*.png
|
||||
COPY_FILES += $$PWD/data/images/airlines/*.png
|
||||
COPY_FILES += $$PWD/swiftDB/*.*
|
||||
COPY_FILES += $$PWD/bootstrap/productive/*.*
|
||||
COPY_FILES += $$PWD/bootstrap/development/*.*
|
||||
COPY_FILES += $$PWD/local.env.template/*.*
|
||||
COPY_FILES += $$PWD/local.env.template/bootstrap/*.*
|
||||
COPY_FILES += $$PWD/local.env.template/bootstrap/0.6/*.*
|
||||
COPY_FILES += $$PWD/shared/bootstrap/*.*
|
||||
COPY_FILES += $$PWD/shared/dbdata/*.*
|
||||
COPY_FILES += $$PWD/shared/download/*.*
|
||||
|
||||
package_resources.path = $$PREFIX
|
||||
package_resources.files += data
|
||||
package_resources.files += swiftDB
|
||||
package_resources.files += bootstrap
|
||||
package_resources.files += shared
|
||||
package_resources.files += local.env.template
|
||||
INSTALLS += package_resources
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace BlackGui
|
||||
// info
|
||||
if (s)
|
||||
{
|
||||
CLogMessage(this).info("Read DB data");
|
||||
CLogMessage(this).info("Read DB data: %1") << CProject::getSwiftStaticDbFilesDir();
|
||||
this->ui->comp_DbAircraftIcao->showLoadIndicator();
|
||||
this->ui->comp_DbAirlineIcao->showLoadIndicator();
|
||||
this->ui->comp_DbCountries->showLoadIndicator();
|
||||
|
||||
@@ -324,7 +324,12 @@ namespace BlackMisc
|
||||
QString getSwiftResourceDirImpl()
|
||||
{
|
||||
QDir dir(CProject::getApplicationDir());
|
||||
if (dir.cdUp()) { return dir.absolutePath(); }
|
||||
if (dir.cdUp())
|
||||
{
|
||||
Q_ASSERT_X(dir.exists(), Q_FUNC_INFO, "missing dir");
|
||||
return dir.absolutePath();
|
||||
}
|
||||
Q_ASSERT_X(false, Q_FUNC_INFO, "missing dir");
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -344,22 +349,23 @@ namespace BlackMisc
|
||||
{
|
||||
QString d(CProject::getSwiftResourceDir());
|
||||
if (d.isEmpty()) { return ""; }
|
||||
QDir dir(d);
|
||||
if (dir.cd("swiftDB")) { return dir.absolutePath(); }
|
||||
return "";
|
||||
QDir dir(CFileUtils::appendFilePaths(d, "shared/dbdata"));
|
||||
Q_ASSERT_X(dir.exists(), Q_FUNC_INFO, "missing dir");
|
||||
return dir.absolutePath();
|
||||
}
|
||||
|
||||
const QString &CProject::getSwiftStaticDbFilesDir()
|
||||
{
|
||||
static QString s(getSwiftResourceDirImpl());
|
||||
static QString s(getSwiftStaticDbFilesDirImpl());
|
||||
return s;
|
||||
}
|
||||
|
||||
QString getImagesDirImpl()
|
||||
{
|
||||
QString d(CProject::getSwiftResourceDir());
|
||||
if (d.isEmpty()) return "";
|
||||
return CFileUtils::appendFilePaths(d, "data/images");
|
||||
QDir dir(CFileUtils::appendFilePaths(d, "data/images"));
|
||||
Q_ASSERT_X(dir.exists(), Q_FUNC_INFO, "missing dir");
|
||||
return dir.absolutePath();
|
||||
}
|
||||
|
||||
const QString &CProject::getImagesDir()
|
||||
|
||||
@@ -145,12 +145,12 @@ void CSwiftData::ps_setupChanged()
|
||||
|
||||
void CSwiftData::initDynamicMenus()
|
||||
{
|
||||
Q_ASSERT(this->ui->menu_InfoAreas);
|
||||
Q_ASSERT(this->ui->comp_MainInfoArea);
|
||||
Q_ASSERT_X(this->ui->menu_InfoAreas, Q_FUNC_INFO, "missing info areas");
|
||||
Q_ASSERT_X(this->ui->comp_MainInfoArea, Q_FUNC_INFO, "missing main area");
|
||||
this->ui->menu_InfoAreas->addActions(this->ui->comp_MainInfoArea->getInfoAreaSelectActions(this->ui->menu_InfoAreas));
|
||||
|
||||
QString resourceDir(CProject::getSwiftResourceDir());
|
||||
if (!resourceDir.isEmpty())
|
||||
if (!resourceDir.isEmpty() && QDir(resourceDir).exists())
|
||||
{
|
||||
Q_ASSERT_X(this->ui->comp_MainInfoArea, Q_FUNC_INFO, "Missing main info area");
|
||||
Q_ASSERT_X(this->ui->comp_MainInfoArea->getDataInfoAreaComponent(), Q_FUNC_INFO, "Missing DB info area");
|
||||
|
||||
Reference in New Issue
Block a user