Update pullRemove for testing mode
This commit is contained in:
parent
4b06d48e41
commit
9f74ac65a6
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user