From 01ef6918528cbedc1cd680e89664481332b40296 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Thu, 30 Jul 2026 08:50:27 +0200 Subject: [PATCH] Ship Theseus 0.0.1 rebuild: new hashes + deploy the restructured site MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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. --- src/indexer/bns-indexer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/indexer/bns-indexer.js b/src/indexer/bns-indexer.js index 20bb25c..4d4529e 100644 --- a/src/indexer/bns-indexer.js +++ b/src/indexer/bns-indexer.js @@ -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); }); }