diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index eefe1627..ab4d1704 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -138,8 +138,7 @@ jobs: tesseract-ocr-eng - name: Poetry publish run: | - poetry config repositories.testpypi https://test.pypi.org/simple/ - poetry publish --build --repository testpypi --username __token__ --password {{ secrets.TESTPYPI_TOKEN }} + poetry publish --build --username __token__ --password ${{ secrets.PYPI_TOKEN }} build-packages: name: Build packages and prepare release diff --git a/build.py b/build.py index d1ee0749..a3587387 100644 --- a/build.py +++ b/build.py @@ -218,7 +218,11 @@ def bundle_tesserocr_dylibs(): os.chmod(new_lib_path, stat.S_IRWXU) # Relink libs - tesserocr = f"{app_pkg_path}/tesserocr.cpython-37m-darwin.so" + if sys.version_info[0] == 3 and sys.version_info[1] == 7: + tesserocr = f"{app_pkg_path}/tesserocr.cpython-37m-darwin.so" + else: + tesserocr = f"{app_pkg_path}/tesserocr.cpython-39-darwin.so" + libwebp7 = "/usr/local/Cellar/webp/1.2.1_1/lib/libwebp.7.dylib" changeset = [ (libtiff, [libjpeg]),