diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-07-25 02:40:14 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 02:40:14 +0300 |
| commit | 8afd52ae57f9237f4f46138ad224dfc621d7ba59 (patch) | |
| tree | 349bbbd86c57863539ebc4c2eacf34550e076fa2 /.github/workflows/preview.yml | |
| parent | 5f1957c27bd23f73b339265d3acd32f4a21878a3 (diff) | |
fix: bundle modern ConPTY on Windows (#1828)
refs #1533
refs #1644
Diffstat (limited to '.github/workflows/preview.yml')
| -rw-r--r-- | .github/workflows/preview.yml | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 370028fe..6704505b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -139,7 +139,7 @@ jobs: name: herdr-macos-aarch64 - target: x86_64-pc-windows-msvc os: windows-latest - name: herdr-windows-x86_64.exe + name: herdr-windows-x86_64.zip runs-on: ${{ matrix.os }} env: LIBGHOSTTY_VT_OPTIMIZE: ReleaseFast @@ -258,7 +258,14 @@ jobs: if: runner.os == 'Windows' shell: pwsh run: | - Copy-Item target\${{ matrix.target }}\release\herdr.exe ${{ matrix.name }} + $ErrorActionPreference = "Stop" + $package = Join-Path $env:RUNNER_TEMP "Microsoft.Windows.Console.ConPTY.nupkg" + $stage = Join-Path $env:RUNNER_TEMP "herdr-windows-x86_64" + .\scripts\package_windows_conpty.ps1 ` + -HerdrExe target\${{ matrix.target }}\release\herdr.exe ` + -PackagePath $package ` + -StageDir $stage ` + -OutputPath ${{ matrix.name }} $hash = (Get-FileHash -Algorithm SHA256 ${{ matrix.name }}).Hash.ToLowerInvariant() "$hash ${{ matrix.name }}" | Out-File -Encoding ascii ${{ matrix.name }}.sha256 "commit=${{ needs.preflight.outputs.commit }}" | Out-File -Encoding utf8 BUILD_INFO.txt @@ -324,7 +331,7 @@ jobs: result = {} for path in pathlib.Path('artifacts').glob('herdr-*/*.sha256'): digest, name = path.read_text().split()[:2] - target = name.removeprefix('herdr-').removesuffix('.exe') + target = name.removeprefix('herdr-').removesuffix('.exe').removesuffix('.zip') result[target] = digest pathlib.Path('preview-sha256.json').write_text(json.dumps(result, indent=2) + '\n') PY @@ -344,7 +351,7 @@ jobs: artifacts/herdr-linux-aarch64/herdr-linux-aarch64 artifacts/herdr-macos-x86_64/herdr-macos-x86_64 artifacts/herdr-macos-aarch64/herdr-macos-aarch64 - artifacts/herdr-windows-x86_64.exe/herdr-windows-x86_64.exe + artifacts/herdr-windows-x86_64.zip/herdr-windows-x86_64.zip - name: Update preview manifest run: | |
