File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ jobs:
105105 run : bun install --frozen-lockfile
106106
107107 - name : Build Windows desktop artifact
108- run : bun run dist:desktop:win
108+ run : bun run dist:desktop:artifact -- --platform win --target nsis --arch x64 --verbose
109109
110110 - name : Upload Windows desktop artifact
111111 uses : actions/upload-artifact@v7
Original file line number Diff line number Diff line change @@ -500,10 +500,6 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* (
500500 appId : "com.okcode.okcode" ,
501501 productName,
502502 artifactName : "OK-Code-${version}-${arch}.${ext}" ,
503- // Production dependencies are installed into the staged app ahead of packaging.
504- // Skip electron-builder's extra native rebuild step so packaged builds can use
505- // shipped prebuilds like node-pty on Windows instead of requiring local Spectre libs.
506- npmRebuild : false ,
507503 directories : {
508504 buildResources : "apps/desktop/resources" ,
509505 } ,
@@ -557,6 +553,10 @@ const createBuildConfig = Effect.fn("createBuildConfig")(function* (
557553 if ( signed ) {
558554 winConfig . azureSignOptions = yield * AzureTrustedSigningOptionsConfig ;
559555 } else {
556+ // Production dependencies are installed into the staged app ahead of packaging.
557+ // Skip electron-builder's extra native rebuild step so Windows builds can use
558+ // shipped prebuilds like node-pty instead of requiring local Spectre libs.
559+ buildConfig . npmRebuild = false ;
560560 // Unsigned local builds shouldn't need the Windows code-signing toolchain or
561561 // rcedit metadata pass; skipping it avoids symlink-privileged cache extraction.
562562 winConfig . signAndEditExecutable = false ;
You can’t perform that action at this time.
0 commit comments