diff --git a/.env b/.env new file mode 100644 index 0000000..5ca0fa8 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +TESSERACT_PATH=C:\Program Files\Tesseract-OCR\tesseract.exe +GOOGLE_API_KEY=Your_GOOGLE_API_KEY diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5cc9ae2..de9fb2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,21 +22,17 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install pyinstaller + pip install pyinstaller python-dotenv - name: Build Windows Executable run: | - pyinstaller --onefile --windowed main.py + pyinstaller --onefile --windowed --add-data ".env:." main.py - name: Generate Tag id: generate_tag run: | $tag = "v1.0.${{ github.run_number }}" echo "TAG=$tag" >> $env:GITHUB_OUTPUT - git config user.name github-actions - git config user.email github-actions@github.com - git tag $tag - git push origin $tag - name: Create Release uses: softprops/action-gh-release@v2 diff --git a/.gitignore b/.gitignore index 9c87535..cdc3717 100644 --- a/.gitignore +++ b/.gitignore @@ -89,8 +89,7 @@ celerybeat-schedule # SageMath parsed files *.sage.py -# Environments -.env +# Environments .venv env/ venv/