update build.ts

This commit is contained in:
2026-02-09 01:34:23 +08:00
parent 8e605a8a69
commit 6291a796dc
2 changed files with 7 additions and 9 deletions

View File

@@ -9,7 +9,7 @@ import {
term,
uint8ArrayToHexString,
writeStringToFile,
} from "https://script.hatter.ink/@35/deno-commons-mod.ts";
} from "https://script.hatter.ink/@36/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";
@@ -157,9 +157,7 @@ async function buildFile(file: string, flags: any) {
log.warn(`Read script sign PIN failed: `, signScriptUserPinOutput);
} else {
scriptSignArgs.push("--pin");
scriptSignArgs.push(
signScriptUserPinOutput.getStdoutAsStringThenTrim(),
);
scriptSignArgs.push(signScriptUserPinOutput.stdoutThenTrim());
}
scriptSignArgs.push(bundleFile);
@@ -175,5 +173,5 @@ async function buildFile(file: string, flags: any) {
await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T012700+08:00.MEUCIGGCDSJvi+URM4KdfZrW
// q04x43Wf4KDFnpuRUJVJp97GAiEAyoTJKX/S7K1/1czB3U6+bKurCgxcG/09AXJSSHSTSo0=
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T013352+08:00.MEUCIA0Da37Cvdu6PzvaGWZK
// fpW41+0S0tfBfvkpJOFvB1h+AiEAvS1FYGxqEwZThHHZqx/Zju1z8m9D3P4p9EfxojfmDjo=