fix: Windows build errors (handle_connection, creation_flags, mkdir)

- server.rs: add handle_connection_windows for named pipe connections
- transport.rs: import CommandExt trait for creation_flags on Windows
- release.yml: mkdir -p before binary copy to npm bin dirs
This commit is contained in:
jackwener
2026-04-16 23:14:58 +08:00
parent f9bca1f872
commit 59dd6bfa24
4 changed files with 34 additions and 2 deletions
+2
View File
@@ -70,12 +70,14 @@ jobs:
if: matrix.os != 'windows-latest'
run: |
cp target/${{ matrix.target }}/release/wx ${{ matrix.asset }}
mkdir -p npm/platforms/${{ matrix.npm_dir }}/bin
cp target/${{ matrix.target }}/release/wx npm/platforms/${{ matrix.npm_dir }}/bin/wx
- name: Copy binary (Windows)
if: matrix.os == 'windows-latest'
run: |
copy target\${{ matrix.target }}\release\wx.exe ${{ matrix.asset }}
if not exist npm\platforms\${{ matrix.npm_dir }}\bin mkdir npm\platforms\${{ matrix.npm_dir }}\bin
copy target\${{ matrix.target }}\release\wx.exe npm\platforms\${{ matrix.npm_dir }}\bin\wx.exe
- uses: actions/upload-artifact@v4