Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): sign Windows native addons #8206

MergedLumbreras2306(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/8206/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 59 additions and 5 deletions.

x
0 of 2 viewed, 2 left
24 additions and 4 deletionsscripts/build-desktop-artifact.test.tsModified
View file
@@ -3,6 +3,7 @@
import * as NodePath from "node:path";
​
import * as NodeServices from "@effect/platform-node/NodeServices";
+import { extractFile } from "@electron/asar";
import { assert, it } from "@effect/vitest";
import * as ConfigProvider from "effect/ConfigProvider";
import * as FileSystem from "effect/FileSystem";
@@ -197,7 +198,7 @@
yield* fs.makeDirectory(path.dirname(serverEntryPath), { recursive: true });
yield* fs.makeDirectory(path.dirname(nativePath), { recursive: true });
yield* fs.writeFileString(serverEntryPath, input.serverEntrySource ?? "console.log('server');\n");
- yield* fs.writeFileString(nativePath, "native-binary");
+ yield* fs.writeFileString(nativePath, "MZ native-binary");
​
const generatedAsarPath = path.join(tempDir, WINDOWS_SERVER_ASAR_RESOURCE);
yield* packWindowsServerAsar({ sourceDir, asarPath: generatedAsarPath, arch: "x64" });
@@ -883,7 +884,7 @@
]);
});
​
- it.effect("keeps target native files while excluding the other Windows architecture", () =>
+ it.effect("unpacks target Windows natives while excluding the other architecture", () =>
Effect.scoped(
Effect.gen(function* () {
const fs = yield* FileSystem.FileSystem;
@@ -897,12 +898,14 @@