Changed to GitHub hosted latest software and db version manifest

This commit is contained in:
Marco Dalla Tiezza
2024-05-30 12:48:29 +02:00
parent f0db05c96e
commit 2a70e42a59
4 changed files with 21 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ class UIspaceweather(QObject):
network_manager = self._parent.network_manager network_manager = self._parent.network_manager
network_manager.show_popup = True network_manager.show_popup = True
poseidon_data = network_manager.fetch_remote_json( poseidon_data = network_manager.fetch_remote_json(
Constants.POSEIDON_REPORT Constants.POSEIDON_REPORT_URL
) )
if poseidon_data: if poseidon_data:
self.load_poseidon_report.emit(poseidon_data) self.load_poseidon_report.emit(poseidon_data)

View File

@@ -23,8 +23,8 @@ class Constants():
SQL_NAME = 'data.sqlite' SQL_NAME = 'data.sqlite'
DB_LATEST_VERSION = 'https://www.aresvalley.com/artemis/v4/latest.json' LATEST_VERSION_URL = 'https://raw.githubusercontent.com/AresValley/Artemis/master/config/release-info.json'
POSEIDON_REPORT = 'https://www.aresvalley.com/poseidon_engine/data.json' POSEIDON_REPORT_URL = 'https://www.aresvalley.com/poseidon_engine/data.json'
DEFAULT_ENCODING = 'utf-8' DEFAULT_ENCODING = 'utf-8'
SYSTEM_LANGUAGE = 'en_US' # locale.getdefaultlocale()[0] SYSTEM_LANGUAGE = 'en_US' # locale.getdefaultlocale()[0]

View File

@@ -37,7 +37,7 @@ class NetworkManager:
popup (bool, optional): Suppress the "already up-to-date" message on startup. popup (bool, optional): Suppress the "already up-to-date" message on startup.
Defaults to False. 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: if latest_json:
local_db = self.load_local_db() local_db = self.load_local_db()
remote_db = latest_json['sigID_DB'] remote_db = latest_json['sigID_DB']

17
config/release-info.json Normal file
View 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"
}
}