mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-09-30 00:56:56 +13:00
Fix choco updater failing
This commit is contained in:
parent
f0e8385e2b
commit
0cd8a0916b
1 changed files with 7 additions and 4 deletions
|
@ -35,13 +35,16 @@ public class ChocoUpdater extends UpdateHandler {
|
|||
.lines()
|
||||
.filter(s -> s.startsWith("xpipe"))
|
||||
.findAny()
|
||||
.orElseThrow()
|
||||
.split("\\|")[2];
|
||||
var isUpdate = isUpdate(latest);
|
||||
.map(string -> string.split("\\|")[2]);
|
||||
if (latest.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
var isUpdate = isUpdate(latest.get());
|
||||
var rel = new AvailableRelease(
|
||||
AppProperties.get().getVersion(),
|
||||
XPipeDistributionType.get().getId(),
|
||||
latest,
|
||||
latest.get(),
|
||||
"https://community.chocolatey.org/packages/xpipe/" + latest,
|
||||
null,
|
||||
null,
|
||||
|
|
Loading…
Reference in a new issue