Skip to content
Source
Sign inSign up
pingdotgg/t3code

Fix desktop native optional dependency packaging #3816

MergedPrgm-code(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/3816/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 45 additions and 11 deletions.

x
0 of 2 viewed, 2 left
15 additions and 0 deletionsscripts/build-desktop-artifact.test.tsModified
View file
@@ -33,6 +33,7 @@
resolveGitHubPublishConfig,
resolveMockUpdateServerPort,
resolveMockUpdateServerUrl,
+ resolvePackageManagerUserAgent,
stageLinuxIconSize,
STAGE_INSTALL_ARGS,
} from "./build-desktop-artifact.ts";
@@ -208,6 +209,13 @@
cpu: ["x64"],
});
+ assert.deepStrictEqual(createStageWorkspaceConfig({ platform: "linux", arch: "x64" }), {
+ supportedArchitectures: {
+ os: ["linux"],
+ cpu: ["x64"],
+ libc: ["glibc"],
+ },
+ });
// Windows artifacts also bundle the same-architecture WSL (Linux, glibc) backend, so the
// staged install must fetch its native optional deps (e.g. ffi-rs) too.
assert.deepStrictEqual(createStageWorkspaceConfig({ platform: "win", arch: "x64" }), {
@@ -253,6 +261,7 @@
supportedArchitectures: {
os: ["linux"],
cpu: ["x64"],
+ libc: ["glibc"],