feat: 优化版本更新检测流程

This commit is contained in:
2024-03-19 16:31:38 +08:00
parent 7285f1b3e2
commit 98300804fe
9 changed files with 35 additions and 24 deletions

View File

@@ -18,7 +18,6 @@ import lombok.Getter;
import org.slf4j.Logger;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
@@ -97,10 +96,8 @@ public class HamsterCorePlugin {
try (InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8)) {
YamlConfig config = YamlConfig.load(reader);
UpdateCheckUtils.checkUpdate(pluginName, config);
} catch (IOException ignored) {
}
} catch (IOException e) {
e.printStackTrace();
} catch (Exception ignored) {
}
}
});

View File

@@ -1,6 +1,5 @@
version: ${version}
VERSION: ${version}
CHECK_TYPE: GITEA_RELEASES
GIT_BASE_URL: https://git.airgame.net
GIT_REPO: MiniDay/hamster-core
GIT_TOKEN: a44a69a4d1b8601bf6091403247759cd28764d5e
DOWNLOAD_URL: https://jenkins.airgame.net/job/opensource/job/hamster-core/