update build.ts

This commit is contained in:
2026-02-08 23:29:13 +08:00
parent 2d735d9103
commit 94f64e45be
2 changed files with 14 additions and 7 deletions

View File

@@ -18,12 +18,12 @@
},
"build.ts": {
"script_name": "build.ts",
"script_length": 4555,
"script_sha256": "b70337218e8e164ba58c47ede81fdd9015ae81dd7c2658214720cf3e6fd27794",
"script_length": 4535,
"script_sha256": "0eee82d860bb47fa06f0e6751e656fd4237e6de609067a3471b992f07499d76b",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/build.ts",
"single_script_file": true,
"publish_time": 1770564482429,
"update_time": 1770564482429
"update_time": 1770564548321
},
"cal-bun.ts": {
"script_name": "cal-bun.ts",

View File

@@ -1,8 +1,15 @@
#!/usr/bin/env runts -- --allow-all
import {execCommandShell, log, term, uint8ArrayToHexString,} from "https://script.hatter.ink/@35/deno-commons-mod.ts";
import {
execCommandShell,
existsPath,
log,
stringifyPretty,
term,
uint8ArrayToHexString,
writeStringToFile,
} from "https://script.hatter.ink/@35/deno-commons-mod.ts";
import {parseArgs} from "jsr:@std/cli/parse-args";
import {existsPath, stringifyPretty, writeStringToFile,} from "../libraries/deno-commons-mod.ts";
import {readFileToString} from "https://global.hatter.ink/script/get/@1/deno-commons-1.6.0-mod.ts";
async function main() {
@@ -143,5 +150,5 @@ async function buildFile(file: string, flags: any) {
await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T232753+08:00.MEQCIDKxUBkD92GrszyWM6gC
// jCNOVqcEMUdDKgs6TJlFhRbXAiBzlvmlHCXGFZBCcjjKBjmXDYqdbnfTp6D1wlSFyhK/sA==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T232903+08:00.MEUCIGntBchf8JaCo8Tjt9FP
// 00nEmxGx5ixwSUkuVVMeiRFwAiEAkdvG0TAOpVecHm8+KWiZiE1z84M6RHfA4LSo110hb3w=