diff --git a/scripts/build-desktop-artifact.test.ts b/scripts/build-desktop-artifact.test.ts index 4f975214250e1..18dce5bd7f8b1 100644 --- a/scripts/build-desktop-artifact.test.ts +++ b/scripts/build-desktop-artifact.test.ts @@ -986,19 +986,18 @@ it.layer(NodeServices.layer)("build-desktop-artifact", (it) => { assert.deepStrictEqual(result.unpackedFiles, ["node_modules/native/addon.node"]); assert.isBelow(result.fileCount, WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT); assert.deepStrictEqual(secondAsar, firstAsar); - for (let count = result.fileCount; count < 87; count++) { - yield* fs.writeFileString( - path.join(fixture.packagedAppDir, `runtime-${count}.dll`), - "native", - ); + const cacheDir = path.join(fixture.packagedAppDir, "resources/server-compile-cache"); + yield* fs.makeDirectory(cacheDir); + for (let count = result.fileCount; count < 102; count++) { + yield* fs.writeFileString(path.join(cacheDir, String(count)), "bytecode"); } - const speechPayload = yield* validateWindowsPackagedPayload({ + const cachedPayload = yield* validateWindowsPackagedPayload({ stageDistDir: fixture.stageDistDir, appExecutableName: fixture.appExecutableName, targetArch: "x64", appVersion: WINDOWS_PAYLOAD_FIXTURE_VERSION, }); - assert.equal(speechPayload.fileCount, 87); + assert.equal(cachedPayload.fileCount, 102); }), ).pipe(Effect.provideService(HostProcess.Platform, "linux")), ); diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 2b1159b60220f..5f559488a391c 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -1066,7 +1066,7 @@ export function resolveWindowsServerAsarIgnoreGlobs(arch: typeof BuildArch.Type) ]; } -export const WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 96; +export const WINDOWS_PACKAGED_PAYLOAD_FILE_LIMIT = 102; export const WINDOWS_SERVER_RESOURCE_SOURCE_DIR = "apps/desktop/prod-resources/windows-server"; export const WINDOWS_SERVER_EXTRA_RESOURCES = [ {