update build.js
This commit is contained in:
@@ -18,12 +18,12 @@
|
||||
},
|
||||
"build.ts": {
|
||||
"script_name": "build.ts",
|
||||
"script_length": 4976,
|
||||
"script_sha256": "8e96cf0c656c76ff520ca49e1f58d15bbcf6797f574f5a6a962f56a133d0f887",
|
||||
"script_length": 5127,
|
||||
"script_sha256": "ac5a94ad2a52efb8ec16619f9166e7a473848dfebda8a904216a21790e16ee62",
|
||||
"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": 1770570061346
|
||||
"update_time": 1770570335255
|
||||
},
|
||||
"cal-bun.ts": {
|
||||
"script_name": "cal-bun.ts",
|
||||
|
||||
@@ -148,15 +148,19 @@ async function buildFile(file: string, flags: any) {
|
||||
if (flags["skip-sign"]) {
|
||||
log.warn(`Skip signature for file: ${bundleFile}`);
|
||||
} else {
|
||||
const signScriptUserPin = execCommandAndStdout("keyring.rs", [
|
||||
const signScriptUserPin = await execCommandAndStdout("keyring.rs", [
|
||||
"-gRU",
|
||||
"yubikey4white:user-pin",
|
||||
]);
|
||||
await execCommandShell("script-sign.rs", [
|
||||
const ret = await execCommandShell("script-sign.rs", [
|
||||
"--pin",
|
||||
signScriptUserPin,
|
||||
bundleFile,
|
||||
]);
|
||||
if (ret !== 0) {
|
||||
log.error(`Sign script: ${bundleFile} failed, ret code: ${ret}`);
|
||||
return;
|
||||
}
|
||||
}
|
||||
await execCommandShell("chmod", ["+x", bundleFile]);
|
||||
await writeBundleSourceSha256(file, bundleFile, flags);
|
||||
@@ -164,5 +168,5 @@ async function buildFile(file: string, flags: any) {
|
||||
|
||||
await main();
|
||||
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T010054+08:00.MEYCIQD6vk5cA8zttDLbs4Le
|
||||
// V4Yd9z5bjTaQzw3TikZibSEI0gIhAJyPmDv0b5Vh0fFPxh3SMj3F3MWtb/23Frq31pqfOtCB
|
||||
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260209T010454+08:00.MEYCIQCyqK8SqFbxJqCu1fEP
|
||||
// IAOM2DklduDdgQ3i//kMBKfUQAIhAPq5xxr5jGvJ6YdpoLr9t95b+JTmSZ+gJq4kEH3XrRLm
|
||||
|
||||
Reference in New Issue
Block a user