mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57:12 -07:00
Disable release version check if --dev
This commit is contained in:
parent
841bc6d4eb
commit
1610677a94
2 changed files with 5 additions and 1 deletions
|
@ -110,11 +110,13 @@ class GithubApi2 @Inject constructor(
|
|||
return Observable.just(UploadAssetResponse(tagName, tagName))
|
||||
}
|
||||
|
||||
var isDev: Boolean = false
|
||||
|
||||
val latestKobaltVersion: Future<String>
|
||||
get() {
|
||||
val callable = Callable<String> {
|
||||
var result = Kobalt.version
|
||||
if (Duration.ofMinutes(10L) >
|
||||
if (! isDev && Duration.ofMinutes(10L) >
|
||||
Duration.between(VersionCheckTimestampFile.timestamp, Instant.now())) {
|
||||
kobaltLog(2, "Skipping GitHub latest release check, too soon.")
|
||||
} else {
|
||||
|
|
|
@ -93,6 +93,8 @@ private class Main @Inject constructor(
|
|||
}
|
||||
|
||||
var result = 1
|
||||
|
||||
github.isDev = args.dev
|
||||
val latestVersionFuture = github.latestKobaltVersion
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue