2023-02-24 18:02:18 -08:00
|
|
|
const { DistributionAPI } = require('helios-core/common')
|
2018-07-22 08:40:15 -07:00
|
|
|
|
|
|
|
const ConfigManager = require('./configmanager')
|
2022-12-24 19:17:30 -08:00
|
|
|
|
2023-03-20 18:24:56 -07:00
|
|
|
// Old WesterosCraft url.
|
|
|
|
// exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
|
2024-12-14 04:00:17 -08:00
|
|
|
exports.REMOTE_DISTRO_URL = 'http://59.26.10.62:8080/distribution.json'
|
2018-07-22 08:40:15 -07:00
|
|
|
|
2023-02-24 18:02:18 -08:00
|
|
|
const api = new DistributionAPI(
|
|
|
|
ConfigManager.getLauncherDirectory(),
|
2023-02-25 00:28:40 -08:00
|
|
|
null, // Injected forcefully by the preloader.
|
|
|
|
null, // Injected forcefully by the preloader.
|
2023-02-24 18:02:18 -08:00
|
|
|
exports.REMOTE_DISTRO_URL,
|
|
|
|
false
|
|
|
|
)
|
2018-07-22 08:40:15 -07:00
|
|
|
|
2023-02-24 18:02:18 -08:00
|
|
|
exports.DistroAPI = api
|