Update github and jenkins url
This commit is contained in:
@@ -106,7 +106,7 @@ index 80553face9c70c2a3d897681e7761df85b22d464..c4831e424782b83ae81b4b948ff52c25
|
|||||||
if (stream != null) {
|
if (stream != null) {
|
||||||
diff --git a/src/main/java/su/plo/matter/MatterVersionFetcher.java b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
diff --git a/src/main/java/su/plo/matter/MatterVersionFetcher.java b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359ff50ff948
|
index 0000000000000000000000000000000000000000..329f4d8014f13e442a29fd5467fd0214db35f9a9
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
+++ b/src/main/java/su/plo/matter/MatterVersionFetcher.java
|
||||||
@@ -0,0 +1,137 @@
|
@@ -0,0 +1,137 @@
|
||||||
@@ -142,8 +142,8 @@ index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359f
|
|||||||
+ private static final Logger LOGGER = Logger.getLogger("MatterVersionFetcher");
|
+ private static final Logger LOGGER = Logger.getLogger("MatterVersionFetcher");
|
||||||
+ private static final HttpClient client = HttpClient.newHttpClient();
|
+ private static final HttpClient client = HttpClient.newHttpClient();
|
||||||
+
|
+
|
||||||
+ private static final URI JENKINS_URI = URI.create("https://matter.plo.su/job/Matter-1.18/lastSuccessfulBuild/buildNumber");
|
+ private static final URI JENKINS_URI = URI.create("https://matter.plo.su/job/Matter-1.19/lastSuccessfulBuild/buildNumber");
|
||||||
+ private static final String GITHUB_FORMAT = "https://api.github.com/repos/plasmoapp/matter/compare/ver/pufferfish-1.18...%s";
|
+ private static final String GITHUB_FORMAT = "https://api.github.com/repos/plasmoapp/matter/compare/ver/pufferfish-1.19...%s";
|
||||||
+
|
+
|
||||||
+ private static final HttpResponse.BodyHandler<JsonObject> JSON_OBJECT_BODY_HANDLER = responseInfo -> HttpResponse.BodySubscribers.mapping(
|
+ private static final HttpResponse.BodyHandler<JsonObject> JSON_OBJECT_BODY_HANDLER = responseInfo -> HttpResponse.BodySubscribers.mapping(
|
||||||
+ HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8),
|
+ HttpResponse.BodySubscribers.ofString(StandardCharsets.UTF_8),
|
||||||
@@ -247,4 +247,3 @@ index 0000000000000000000000000000000000000000..3de5c2def719c799a2f497e43e18359f
|
|||||||
+ return text("Previous version: " + oldVersion, NamedTextColor.GRAY, TextDecoration.ITALIC);
|
+ return text("Previous version: " + oldVersion, NamedTextColor.GRAY, TextDecoration.ITALIC);
|
||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
\ No newline at end of file
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<a href="https://github.com/plasmoapp/matter/">GitHub</a>
|
<a href="https://github.com/plasmoapp/matter/">GitHub</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://matter.plo.su/job/Matter-1.18/">Download</a>
|
<a href="https://matter.plo.su/job/Matter-1.19/">Download</a>
|
||||||
<span> | </span>
|
<span> | </span>
|
||||||
<a href="https://discord.com/invite/uueEqzwCJJ">Discord</a>
|
<a href="https://discord.com/invite/uueEqzwCJJ">Discord</a>
|
||||||
</div>
|
</div>
|
||||||
@@ -35,7 +35,7 @@ We are also planning to add an ability to change seed for the biome generation.
|
|||||||
|
|
||||||
## Download
|
## Download
|
||||||
|
|
||||||
[Click here to download from Jenkins](https://matter.plo.su/job/Matter-1.18/)
|
[Click here to download from Jenkins](https://matter.plo.su/job/Matter-1.19/)
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user