Add GitHub Release self-update support for standalone binary
This commit is contained in:
1 parent
c86ee6a235
commit
ce06d8f600
4 files changed
+265
-81
No files matched your search
+5
-1
@@ -162,8 +162,12 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
}
|
||||
|
||||
if (area === "update") {
|
||||
const targetVersion = stringOption(args.options.version) ?? stringOption(args.options.tag) ?? (action && !action.startsWith("-") ? action : undefined);
|
||||
await handleUpdateCommand(runtime, {
|
||||
checkOnly: booleanOption(args.options.check) ?? booleanOption(args.options["check-only"])
|
||||
checkOnly: booleanOption(args.options.check) ?? booleanOption(args.options["check-only"]),
|
||||
force: booleanOption(args.options.force),
|
||||
targetVersion,
|
||||
repo: stringOption(args.options.repo)
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user