18 lines
659 B
JavaScript
18 lines
659 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'
|
|
// SurviePote prod: distribution.json servi en raw depuis le git (Gitea).
|
|
exports.REMOTE_DISTRO_URL = 'https://git.kisakay.com/k/mc/raw/branch/main/atlas/root/distribution.json'
|
|
|
|
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 |