update build.ts

This commit is contained in:
2026-02-10 23:44:12 +08:00
parent dc856711b2
commit d318fdda7d
2 changed files with 8 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
#!/usr/bin/env runts -- --allow-all
import {
args,
execCommand,
execCommandShell,
existsPath,
@@ -9,7 +10,7 @@ import {
term,
uint8ArrayToHexString,
writeStringToFile,
} from "https://script.hatter.ink/@36/deno-commons-mod.ts";
} from "https://script.hatter.ink/@37/deno-commons-mod.ts";
import {parseArgs} from "jsr:@std/cli/parse-args";
import {readFileToString} from "https://global.hatter.ink/script/get/@1/deno-commons-1.6.0-mod.ts";
@@ -22,7 +23,7 @@ Usage:
}
async function main() {
const flags = parseArgs(Deno.args, {
const flags = parseArgs(args(), {
boolean: [
"help",
"no-min",
@@ -180,5 +181,5 @@ async function buildFile(file: string, flags: any) {
await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T235604+08:00.MEUCIQCrTkAmvn7P/n8fONFi
// cpqS5X1+UY+jH+0z/qf1CVy15QIgUv0z4zF0gIuFKWz16/XzGDL1Hae43OEv0qT+h2ooYE8=
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260210T234339+08:00.MEUCIHmL1NC1x13n9Ulgfi1k
// i6EtW3hEyc4kRuqopxP+zwYUAiEAwp86FypQnoXj7kXIRnkloPh1d2pIu/9o1eszNC5oJW4=