Changed to GitHub hosted latest software and db version manifest
This commit is contained in:
@@ -50,7 +50,7 @@ class UIspaceweather(QObject):
|
||||
network_manager = self._parent.network_manager
|
||||
network_manager.show_popup = True
|
||||
poseidon_data = network_manager.fetch_remote_json(
|
||||
Constants.POSEIDON_REPORT
|
||||
Constants.POSEIDON_REPORT_URL
|
||||
)
|
||||
if poseidon_data:
|
||||
self.load_poseidon_report.emit(poseidon_data)
|
||||
|
||||
@@ -23,8 +23,8 @@ class Constants():
|
||||
|
||||
SQL_NAME = 'data.sqlite'
|
||||
|
||||
DB_LATEST_VERSION = 'https://www.aresvalley.com/artemis/v4/latest.json'
|
||||
POSEIDON_REPORT = 'https://www.aresvalley.com/poseidon_engine/data.json'
|
||||
LATEST_VERSION_URL = 'https://raw.githubusercontent.com/AresValley/Artemis/master/config/release-info.json'
|
||||
POSEIDON_REPORT_URL = 'https://www.aresvalley.com/poseidon_engine/data.json'
|
||||
|
||||
DEFAULT_ENCODING = 'utf-8'
|
||||
SYSTEM_LANGUAGE = 'en_US' # locale.getdefaultlocale()[0]
|
||||
|
||||
@@ -37,7 +37,7 @@ class NetworkManager:
|
||||
popup (bool, optional): Suppress the "already up-to-date" message on startup.
|
||||
Defaults to False.
|
||||
"""
|
||||
latest_json = self.fetch_remote_json(Constants.DB_LATEST_VERSION)
|
||||
latest_json = self.fetch_remote_json(Constants.LATEST_VERSION_URL)
|
||||
if latest_json:
|
||||
local_db = self.load_local_db()
|
||||
remote_db = latest_json['sigID_DB']
|
||||
|
||||
17
config/release-info.json
Normal file
17
config/release-info.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"sigID_DB": {
|
||||
"version": 60,
|
||||
"url": "https://github.com/AresValley/Artemis-DB/releases/download/v60/v60.tar",
|
||||
"sha256_hash": "78a2c2e5fc00ef4e6c3c975436177eb726fe38ad05463e5cc84b16797225b803",
|
||||
"total_bytes": 244070400
|
||||
},
|
||||
"windows": {
|
||||
"version": "4.0.0"
|
||||
},
|
||||
"linux": {
|
||||
"version": "4.0.0"
|
||||
},
|
||||
"mac": {
|
||||
"version": "4.0.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user