Download scripts/postinstall.mjs from automindy/fiemwl: direct link, hf CLI and curl.
- Browser
- Download file 778 Bytes
-
https://huggingface.co/spaces/automindy/fiemwl/resolve/main/scripts/postinstall.mjs
- Command line
-
hf download hf://spaces/automindy/fiemwl/scripts/postinstall.mjs
-
curl -L -o postinstall.mjs https://huggingface.co/spaces/automindy/fiemwl/resolve/main/scripts/postinstall.mjs
778 Bytes
| /** | |
| * Post-install warm-up for OmniRoute native runtimes. | |
| * | |
| * Runs after the main `scripts/build/postinstall.mjs` binary-copy step. | |
| * Tries to pre-resolve better-sqlite3 into ~/.omniroute/runtime/ so that | |
| * the first execution is fast and EBUSY-resilient on Windows. | |
| * | |
| * Non-fatal: any error is printed as a warning and install continues. | |
| */ | |
| if ( | |
| process.env.OMNIROUTE_SKIP_POSTINSTALL === "1" || | |
| process.env.CI === "true" || | |
| process.env.CI === "1" | |
| ) { | |
| process.exit(0); | |
| } | |
| (async () => { | |
| try { | |
| const { warmUpRuntimes } = await import("../bin/cli/runtime/index.mjs"); | |
| await warmUpRuntimes(); | |
| } catch (err) { | |
| console.warn(`[omniroute] postinstall warm-up skipped: ${err?.message ?? err}`); | |
| } | |
| })(); | |