import { execFileSync } from "node:child_process"; import { access, mkdir, readFile, writeFile } from "node:fs/promises"; import { join } from "node:path"; import { describe, expect, it } from "vitest"; import { renderInstallScript } from "../../../src/domain/desktop/appExport.js"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; /** A download name a shell would split and expand unless the script quotes it. */ const DOWNLOAD = "vendor/vari'cad $HOME *.deb"; /** * The exported run script, run as agentenv runs it (`cd && ./