Ship Theseus 0.0.1 rebuild: new hashes + deploy the restructured site
- Theseus installer/portable rebuilt with the toolbar overhaul; updated SHA-256 in releases-manifest.json, releases/index.html, apps/index.html (Setup 91764aba…, portable 41a54c7e…). Binaries live on dl.silentmode.st; restructured site (shared.css, apps/nav/store/hermes/choose) deployed to Sia (silentmode.bch). - bns-indexer: main-module detection via pathToFileURL.
This commit is contained in:
parent
f9a5eb367f
commit
01ef691852
1 changed files with 4 additions and 1 deletions
|
|
@ -19,6 +19,7 @@
|
|||
import http from "node:http";
|
||||
import { createHash } from "node:crypto";
|
||||
import { readFileSync, writeFileSync, existsSync } from "node:fs";
|
||||
import { pathToFileURL } from "node:url";
|
||||
import { WebSocketServer } from "ws";
|
||||
|
||||
// ---- config (env, with sane chipnet defaults) ----
|
||||
|
|
@ -240,6 +241,8 @@ async function main() {
|
|||
}
|
||||
|
||||
// Only run the daemon when invoked directly (imports for tests stay side-effect free).
|
||||
if (import.meta.url === `file://${process.argv[1]?.replace(/\\/g, "/")}`) {
|
||||
// pathToFileURL is cross-platform: on Windows argv[1]="D:\..." yields file:///D:/...
|
||||
// matching import.meta.url (the old `file://`+path check only matched on POSIX).
|
||||
if (import.meta.url === pathToFileURL(process.argv[1] || "").href) {
|
||||
main().catch((e) => { console.error("fatal:", e.message); process.exit(1); });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue