2023-02-25 02:02:18 +00:00
|
|
|
const { DistributionAPI } = require('helios-core/common')
|
2018-07-22 15:40:15 +00:00
|
|
|
|
|
|
|
const ConfigManager = require('./configmanager')
|
2022-12-25 03:17:30 +00:00
|
|
|
|
2023-03-21 01:24:56 +00:00
|
|
|
// Old WesterosCraft url.
|
|
|
|
// exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
|
2024-01-08 12:40:02 +00:00
|
|
|
// exports.REMOTE_DISTRO_URL = 'https://skirda-minecraft-distribution.brzezinski.ru/distribution.json'
|
2024-01-09 14:44:56 +00:00
|
|
|
// exports.REMOTE_DISTRO_URL = 'https://helios-files.geekcorner.eu.org/distribution.json'
|
2024-01-13 17:58:56 +00:00
|
|
|
exports.REMOTE_DISTRO_URL = 'http://192.168.88.10:8081/distribution/manifest'
|
|
|
|
// exports.REMOTE_DISTRO_URL = 'http://skirda-nebula.brzezinski.ru/distribution/manifest'
|
2024-01-08 12:40:02 +00:00
|
|
|
// exports.REMOTE_DISTRO_URL = 'http://gregbrzezinski:8080/distribution/manifest'
|
|
|
|
// exports.REMOTE_DISTRO_URL = 'http://localhost:8080/distribution/files/files/distribution.json'
|
2018-07-22 15:40:15 +00:00
|
|
|
|
2023-02-25 02:02:18 +00:00
|
|
|
const api = new DistributionAPI(
|
|
|
|
ConfigManager.getLauncherDirectory(),
|
2023-02-25 08:28:40 +00:00
|
|
|
null, // Injected forcefully by the preloader.
|
|
|
|
null, // Injected forcefully by the preloader.
|
2023-02-25 02:02:18 +00:00
|
|
|
exports.REMOTE_DISTRO_URL,
|
|
|
|
false
|
|
|
|
)
|
2018-07-22 15:40:15 +00:00
|
|
|
|
2023-02-25 02:02:18 +00:00
|
|
|
exports.DistroAPI = api
|