Add dual-mode self-update and multi-target binary build

This commit is contained in:
gitea committed 2026-08-25 13:51:53 +08:00
1 parent 85ca31f4ad
commit c86ee6a235
4 files changed
+207 -19

No files matched your search

+4 -2
View File
@@ -25,7 +25,7 @@ import { handleUpdateCommand } from "./commands/update.js";
import { handleUsersCommand } from "./commands/users.js";
import { handleWebhookCommand } from "./commands/webhook.js";
import { selectCorp } from "./helpers.js";
import { parseArgs, stringOption } from "./parser.js";
import { booleanOption, parseArgs, stringOption } from "./parser.js";
import {
formatConsoleOutput,
joinOutput,
@@ -162,7 +162,9 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
}
if (area === "update") {
await handleUpdateCommand(runtime);
await handleUpdateCommand(runtime, {
checkOnly: booleanOption(args.options.check) ?? booleanOption(args.options["check-only"])
});
return;
}