Skip to content

Commit

Permalink
windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
dickreuter committed Dec 3, 2023
1 parent 1e7a24c commit 0f6909c
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f6909c

Please sign in to comment.