Skip to content

Commit

Permalink
Treat beta releases the same as prereleases in update checker (#6679)
Browse files Browse the repository at this point in the history
* treat beta like pre

* switch to - for stable check

* Update build.gradle

* Update build.gradle
  • Loading branch information
sovdeeth authored Jun 1, 2024
1 parent 96ea6b3 commit 8f483b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ task githubResources(type: ProcessResources) {
include '**'
version = project.property('version')
def channel = 'stable'
if (version.contains('pre'))
if (version.contains('-'))
channel = 'prerelease'
filter ReplaceTokens, tokens: [
'version' : version,
Expand Down Expand Up @@ -329,7 +329,7 @@ task spigotResources(type: ProcessResources) {
include '**'
version = project.property('version')
def channel = 'stable'
if (version.contains('pre'))
if (version.contains('-'))
channel = 'prerelease'
filter ReplaceTokens, tokens: [
'version' : version,
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ch/njol/skript/SkriptConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public class SkriptConfig {
break;
case "stable":
// TODO a better option would be to check that it is not a pre-release through GH API
channel = new ReleaseChannel((name) -> !name.contains("pre"), t);
channel = new ReleaseChannel((name) -> !(name.contains("-")), t);
break;
case "none":
channel = new ReleaseChannel((name) -> false, t);
Expand Down

0 comments on commit 8f483b9

Please sign in to comment.