Update pullRemove for testing mode

This commit is contained in:
DrDeee 2021-01-07 22:20:25 +01:00 committed by GitHub
parent 4b06d48e41
commit 9f74ac65a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,9 +538,10 @@ exports.pullRemote = function(){
}
return new Promise((resolve, reject) => {
const distroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
const testDistroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
//const distroURL = 'https://gist.githubusercontent.com/dscalzi/53b1ba7a11d26a5c353f9d5ae484b71b/raw/'
const opts = {
url: distroURL,
url: ConfigManager.isTesting()? testDistroURL : distroURL,
timeout: 2500
}
const distroDest = path.join(ConfigManager.getLauncherDirectory(), 'distribution.json')
@ -608,4 +609,4 @@ exports.isDevMode = function(){
*/
exports.getDistribution = function(){
return data
}
}