Move version control back to gitee
This commit is contained in:
@@ -10,7 +10,7 @@ A script to play Sheets generated by SkyStudio automatically in game Sky with ac
|
|||||||
"use strict";
|
"use strict";
|
||||||
var emitter = events.emitter(threads.currentThread());
|
var emitter = events.emitter(threads.currentThread());
|
||||||
threads.start(function() {
|
threads.start(function() {
|
||||||
emitter.emit("evaluate", http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@" + http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@master/gitVersion").body.string() + "/source/SkyAutoplayer.js").body.string());
|
emitter.emit("evaluate", http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@" + http.get("https://gitee.com/stageguard/SkyAutoPlayerScript/raw/master/gitVersion").body.string() + "/source/SkyAutoplayer.js").body.string());
|
||||||
});
|
});
|
||||||
emitter.on('evaluate', function(s){
|
emitter.on('evaluate', function(s){
|
||||||
eval(s);
|
eval(s);
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ config = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
checkVersion: function() {
|
checkVersion: function() {
|
||||||
this.values.gitVersion = http.get("https://cdn.jsdelivr.net/gh/StageGuard/SkyAutoPlayerScript@master/gitVersion").body.string();
|
this.values.gitVersion = http.get("https://gitee.com/stageguard/SkyAutoPlayerScript/raw/master/gitVersion").body.string();
|
||||||
var periodVersion = this._global_storage.get("version", this.values.currentVersion);
|
var periodVersion = this._global_storage.get("version", this.values.currentVersion);
|
||||||
var currentVersion = this.values.currentVersion;
|
var currentVersion = this.values.currentVersion;
|
||||||
if(periodVersion < currentVersion) {
|
if(periodVersion < currentVersion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user