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) => {
|
return new Promise((resolve, reject) => {
|
||||||
const distroURL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json'
|
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 distroURL = 'https://gist.githubusercontent.com/dscalzi/53b1ba7a11d26a5c353f9d5ae484b71b/raw/'
|
||||||
const opts = {
|
const opts = {
|
||||||
url: distroURL,
|
url: ConfigManager.isTesting()? testDistroURL : distroURL,
|
||||||
timeout: 2500
|
timeout: 2500
|
||||||
}
|
}
|
||||||
const distroDest = path.join(ConfigManager.getLauncherDirectory(), 'distribution.json')
|
const distroDest = path.join(ConfigManager.getLauncherDirectory(), 'distribution.json')
|
||||||
|
Loading…
Reference in New Issue
Block a user