mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:20:43 +00:00
fix(build): stamp runtime postbuild artifacts
This commit is contained in:
18
scripts/runtime-postbuild-stamp.mjs
Normal file
18
scripts/runtime-postbuild-stamp.mjs
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env node
|
||||
import process from "node:process";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { writeRuntimePostBuildStamp } from "./lib/local-build-metadata.mjs";
|
||||
|
||||
export {
|
||||
RUNTIME_POSTBUILD_STAMP_FILE,
|
||||
writeRuntimePostBuildStamp,
|
||||
} from "./lib/local-build-metadata.mjs";
|
||||
|
||||
if (import.meta.url === pathToFileURL(process.argv[1] ?? "").href) {
|
||||
try {
|
||||
writeRuntimePostBuildStamp();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user