From 4df59901c33e4cacbb835053136da8b64664ec46 Mon Sep 17 00:00:00 2001 From: eric8810 Date: Mon, 27 Jul 2026 12:11:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E9=9C=9C=E7=AA=97=E5=88=86=E5=BE=84?= =?UTF-8?q?=EF=BC=8C=E6=96=87=E5=8D=B7=E5=BE=97=E6=B8=A1=20=C2=B7=20use=20?= =?UTF-8?q?PowerShell=20for=20PDF=20install?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/npm-release.yml | 11 ++++++++++- packages/light-ocr-document/README.md | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 84e669d..27ace3f 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -264,13 +264,22 @@ jobs: env: LIGHT_OCR_SMOKE_FIXTURE: ${{ github.workspace }}/corpus/fixtures/generated-hello-123 run: node smoke.cjs - - name: Install and smoke the explicit Document preview + - name: Install and smoke the explicit Document preview (Unix) + if: runner.os != 'Windows' shell: bash working-directory: package-smoke run: | npm install --no-audit --no-fund --package-lock=false \ ../dist/release/arcships-light-ocr-document-0.1.0.tgz node ../tools/npm/document-smoke.cjs + - name: Install and smoke the explicit Document preview (Windows) + if: runner.os == 'Windows' + shell: pwsh + working-directory: package-smoke + run: | + npm install --no-audit --no-fund --package-lock=false ` + ../dist/release/arcships-light-ocr-document-0.1.0.tgz + node ../tools/npm/document-smoke.cjs - name: Install and smoke preview tiers if: matrix.preview shell: bash diff --git a/packages/light-ocr-document/README.md b/packages/light-ocr-document/README.md index a8af0fd..f2969a6 100644 --- a/packages/light-ocr-document/README.md +++ b/packages/light-ocr-document/README.md @@ -14,6 +14,10 @@ checksum-verified prebuilt binary for supported platforms and may require a compiler if no prebuild is available. Processing does not upload documents or use a network service. +On Windows, install from PowerShell or Command Prompt. The pinned renderer's +installer invokes `tar` with native Windows paths; Git Bash may resolve its own +GNU tar first and misinterpret the drive-letter colon. + ```js const { recognizeDocument } = require('@arcships/light-ocr-document');