| @@ -121,6 +121,8 @@ const createEmbeddedWebUISource = async () => { · 120 unmodified lines |
| 121 | // Build platform binaries | 121 | // Build platform binaries |
| 122 | // --------------------------------------------------------------------------- | 122 | // --------------------------------------------------------------------------- |
| 123 | | 123 | |
| | 124 | const EMBEDDED_WEB_UI_STUB = `const files: Record<string, string> | null = null;\n\nexport default files;\n`; |
| | 125 | |
| 124 | const buildBinaries = async (targets: Target[]) => { | 126 | const buildBinaries = async (targets: Target[]) => { |
| 125 | const meta = await readMetadata(); | 127 | const meta = await readMetadata(); |
| 126 | const binaries: Record<string, string> = {}; | 128 | const binaries: Record<string, string> = {}; |
| @@ -143,7 +145,7 @@ const buildBinaries = async (targets: Target[]) => { · 16 unmodified lines |
| 143 | console.log(`Building ${name}...`); | 145 | console.log(`Building ${name}...`); |
| 144 | | 146 | |
| 145 | await Bun.build({ | 147 | await Bun.build({ |
| 146 | entrypoints: [join(cliRoot, "src/main.ts"), embeddedWebUIPath], | 148 | entrypoints: [join(cliRoot, "src/main.ts")], |
| 147 | minify: true, | 149 | minify: true, |
| 148 | compile: { | 150 | compile: { |
| 149 | target: bunTarget(target) as any, | 151 | target: bunTarget(target) as any, |
| @@ -183,7 +185,7 @@ const buildBinaries = async (targets: Target[]) => { · 33 unmodified lines |
| 183 | | 185 | |
| 184 | return binaries; | 186 | return binaries; |
| 185 | } finally { | 187 | } finally { |
| 186 | await rm(embeddedWebUIPath, { force: true }); | 188 | await writeFile(embeddedWebUIPath, EMBEDDED_WEB_UI_STUB); |
| 187 | } | 189 | } |
| 188 | }; | 190 | }; |
| 189 | | 191 | |