mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
fix auto update
This commit is contained in:
parent
7288cf3bf3
commit
087e985795
@ -58,7 +58,7 @@ public class UpdaterService {
|
|||||||
if (version.contains("UNOFFICIAL")) {
|
if (version.contains("UNOFFICIAL")) {
|
||||||
// This Server is using a modified build that is not a public release.
|
// This Server is using a modified build that is not a public release.
|
||||||
branch = SlimefunBranch.UNOFFICIAL;
|
branch = SlimefunBranch.UNOFFICIAL;
|
||||||
} else if (version.startsWith("DEV - ")) {
|
} else if (version.startsWith("Dev - ")) {
|
||||||
// If we are using a development build, we want to switch to our custom
|
// If we are using a development build, we want to switch to our custom
|
||||||
try {
|
try {
|
||||||
autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "Dev");
|
autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "Dev");
|
||||||
|
@ -33,7 +33,7 @@ class TestUpdaterService {
|
|||||||
@Test
|
@Test
|
||||||
@DisplayName("Test if the development branch is recognized correctly")
|
@DisplayName("Test if the development branch is recognized correctly")
|
||||||
void testDevelopmentBuilds() {
|
void testDevelopmentBuilds() {
|
||||||
UpdaterService service = new UpdaterService(plugin, "DEV - 131 (git 123456)", file);
|
UpdaterService service = new UpdaterService(plugin, "Dev - 131 (git 123456)", file);
|
||||||
Assertions.assertEquals(SlimefunBranch.DEVELOPMENT, service.getBranch());
|
Assertions.assertEquals(SlimefunBranch.DEVELOPMENT, service.getBranch());
|
||||||
Assertions.assertTrue(service.getBranch().isOfficial());
|
Assertions.assertTrue(service.getBranch().isOfficial());
|
||||||
// Cannot currently be tested... yay
|
// Cannot currently be tested... yay
|
||||||
|
Loading…
Reference in New Issue
Block a user