Skip to content

Commit

Permalink
fix(tauri): add pyinstaller hook for ocrmypdf
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Sep 9, 2024
1 parent d377f4b commit dc9859f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hooks/hook-ocrmypdf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# pylint: disable=invalid-name
from PyInstaller.utils.hooks import (
collect_data_files,
collect_submodules,
copy_metadata,
)

datas = copy_metadata("pikepdf") + copy_metadata("ocrmypdf")
datas += collect_data_files("ocrmypdf")
hiddenimports = collect_submodules("ocrmypdf")

0 comments on commit dc9859f

Please sign in to comment.