Download cli/hooks/postinstall.js from heyeyydss/api9nin: direct link, hf CLI and curl.
- Browser
- Download file 668 Bytes
-
https://huggingface.co/spaces/heyeyydss/api9nin/resolve/main/cli/hooks/postinstall.js
- Command line
-
hf download hf://spaces/heyeyydss/api9nin/cli/hooks/postinstall.js
-
curl -L -o postinstall.js https://huggingface.co/spaces/heyeyydss/api9nin/resolve/main/cli/hooks/postinstall.js
668 Bytes
| // Postinstall: warm-up SQLite deps into ~/.9router/runtime so the first | |
| // `9router` start doesn't need network. Failure here is non-fatal — | |
| // cli.js will retry at runtime if anything is missing. | |
| const { ensureSqliteRuntime } = require("./sqliteRuntime"); | |
| const { ensureTrayRuntime } = require("./trayRuntime"); | |
| try { | |
| ensureSqliteRuntime({ silent: false }); | |
| console.log("[9router] runtime SQLite deps ready"); | |
| } catch (e) { | |
| console.warn(`[9router] runtime warm-up skipped: ${e.message}`); | |
| } | |
| try { | |
| ensureTrayRuntime({ silent: false }); | |
| } catch (e) { | |
| console.warn(`[9router] tray runtime skipped: ${e.message}`); | |
| } | |
| process.exit(0); | |