Fix Windows PATH hydration and repair (#1729)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
1 parent
d8d329691a
commit
a7a44d0662
11 files changed
+1049
-165
No files matched your search
@@ -610,12 +610,15 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* (
|
||||
}
|
||||
|
||||
if (platform === "win") {
|
||||
buildConfig.npmRebuild = false;
|
||||
const winConfig: Record<string, unknown> = {
|
||||
target: [target],
|
||||
icon: "icon.ico",
|
||||
};
|
||||
if (signed) {
|
||||
winConfig.azureSignOptions = yield* AzureTrustedSigningOptionsConfig;
|
||||
} else {
|
||||
winConfig.signAndEditExecutable = false;
|
||||
}
|
||||
buildConfig.win = winConfig;
|
||||
}
|
||||
@@ -811,7 +814,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
|
||||
...commandOutputOptions(options.verbose),
|
||||
// Windows needs shell mode to resolve .cmd shims (e.g. bun.cmd).
|
||||
shell: process.platform === "win32",
|
||||
})`bun install --production`,
|
||||
})`bun install --production --omit optional`,
|
||||
);
|
||||
|
||||
const buildEnv: NodeJS.ProcessEnv = {
|
||||
@@ -851,7 +854,7 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
|
||||
...commandOutputOptions(options.verbose),
|
||||
// Windows needs shell mode to resolve .cmd shims.
|
||||
shell: process.platform === "win32",
|
||||
})`bunx electron-builder ${platformConfig.cliFlag} --${options.arch} --publish never`,
|
||||
})`bun x --install=fallback electron-builder ${platformConfig.cliFlag} --${options.arch} --publish never`,
|
||||
);
|
||||
|
||||
const stageDistDir = path.join(stageAppDir, "dist");
|
||||
|
||||
Reference in new issue
Block a user