mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-23 04:02:14 -08:00
33788d4086
Switched the distribution URL to a more reliable API endpoint to improve stability and performance. The new URL is 'https://api.skym-mc.fr/api/v1/servers/distro', which replaces the old one.
19 lines
617 B
JavaScript
19 lines
617 B
JavaScript
const { DistributionAPI } = require('helios-core/common')
|
|
|
|
const ConfigManager = require('./configmanager')
|
|
|
|
// Old WesterosCraft url.
|
|
// exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
|
|
// https://helios-files.geekcorner.eu.org/distribution.json
|
|
|
|
exports.REMOTE_DISTRO_URL = 'https://api.skym-mc.fr/api/v1/servers/distro'
|
|
|
|
const api = new DistributionAPI(
|
|
ConfigManager.getLauncherDirectory(),
|
|
null, // Injected forcefully by the preloader.
|
|
null, // Injected forcefully by the preloader.
|
|
exports.REMOTE_DISTRO_URL,
|
|
false
|
|
)
|
|
|
|
exports.DistroAPI = api |