Skip to content
Source
Sign inSign up
pingdotgg/t3code

Desktop: parallel WSL + Windows backends with mode picker #2751

MergedJgratton24(GitHub profile, opens in a new tab)merged 170 commits intomain fromrefs/pull/2751/headmerged by juliusmarminge View on GitHub

Showing 83 changed files with 99 additions and 7 deletions (loading 80).

x
0 of 83 viewed, 83 left
67 additions and 2 deletions.github/workflows/release.ymlModified
View file
@@ -252,10 +252,64 @@
echo "clerk_cli_oauth_client_id=$CLERK_CLI_OAUTH_CLIENT_ID" >> "$GITHUB_OUTPUT"
echo "relay_url=https://$relay_domain" >> "$GITHUB_OUTPUT"
​
+ # node-pty publishes no Linux prebuilt and the WSL backend runs under the
+ # distro's own (Linux) Node, which can't load the Windows/Electron binary. We
+ # build the Linux pty.node here, on Linux, and hand it to the Windows packaging
+ # job — the Windows artifact then ships a ready WSL backend binary with no
+ # cross-compiling and no first-launch compiler/node-gyp/network on the user's
+ # machine. node-pty is N-API, so one binary works across all WSL Node versions.
+ build_wsl_node_pty:
+ name: Build WSL node-pty (linux-x64)
+ needs: [preflight]
+ if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}
+ runs-on: blacksmith-8vcpu-ubuntu-2404
+ timeout-minutes: 15
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ with:
+ ref: ${{ needs.preflight.outputs.ref }}
+ fetch-depth: 0
+​
+ - name: Setup Vite+
+ uses: voidzero-dev/setup-vp@v1
+ with:
+ node-version-file: package.json
+ cache: true
+ run-install: true
+​