From 0f6909cb29120be26b352f5fd9e2be36875ff9e3 Mon Sep 17 00:00:00 2001 From: Nicolas Dickreuter Date: Sun, 3 Dec 2023 13:04:11 +0000 Subject: [PATCH] windows build --- .../workflows/windows-build.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) rename .github/{ISSUE_TEMPLATE => }/workflows/windows-build.yml (54%) diff --git a/.github/ISSUE_TEMPLATE/workflows/windows-build.yml b/.github/workflows/windows-build.yml similarity index 54% rename from .github/ISSUE_TEMPLATE/workflows/windows-build.yml rename to .github/workflows/windows-build.yml index 0a303be8..cd58b039 100644 --- a/.github/ISSUE_TEMPLATE/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -17,8 +17,31 @@ jobs: with: python-version: '3.11.5' + - name: Install Tesseract + run: | + choco install tesseract + echo "C:\Program Files\Tesseract-OCR" >> $GITHUB_PATH + + - name: Refresh Environment + run: | + Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" + Update-SessionEnvironment + + - name: Check PATH + run: | + echo "PATH: $env:PATH" + + - name: List Tesseract Directory + run: | + ls "C:\Program Files\Tesseract-OCR" + + - name: Test Tesseract Command + run: | + & "C:\Program Files\Tesseract-OCR\tesseract.exe" --version + - name: Install dependencies run: | + $env:Path += ";C:\Program Files\Tesseract-OCR" pip install -r requirements.txt - name: Run PyInstaller