Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix: preserve bundled module resource placeholder during staging

Steven Enamakel23d7f8f86399
diff --git a/scripts/release/stage-windows-modules.mjs b/scripts/release/stage-windows-modules.mjs
index 99aa6859d2..a3d8125819 100644
--- a/scripts/release/stage-windows-modules.mjs
+++ b/scripts/release/stage-windows-modules.mjs
@@ -3,7 +3,7 @@
// a build-time operation; a shipped installer needs no GitHub access to load.
import { createHash } from "node:crypto";
import { execFileSync } from "node:child_process";
-import { mkdirSync, readFileSync, readdirSync, rmSync } from "node:fs";
+import { mkdirSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
import { dirname, join, resolve } from "node:path";
import { fileURLToPath } from "node:url";
@@ -56,6 +56,8 @@ export function stageWindowsModules(output = OUTPUT) {
}
const assets = bundledAssets(readRegistrySource());
rmSync(output, { recursive: true, force: true });
+ mkdirSync(output, { recursive: true });
+ writeFileSync(join(output, ".gitkeep"), "");
for (const asset of assets) {
const dir = join(output, asset.id, asset.version, asset.hostKey);
mkdirSync(dir, { recursive: true });