Skip to content

Commit

Permalink
fix: bundle enchant providers in windows installer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kneemund committed Dec 2, 2024
1 parent 7d2b97c commit cf6bff6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build-aux/inno_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ def run_command(command, error_message):
f"Collecting pixbuf-loader ({loader}) DLLs failed"
)

for enchant_provider in glob.glob(f"{build_environment_path}/lib/enchant-2/*.dll"):
run_command(
f"ldd {enchant_provider} | grep '\\/mingw.*\.dll' -o | xargs -i cp {{}} {dlls_dir}",
f"Collecting enchant provider ({enchant_provider}) DLLs failed",
)

for angle_dll in itertools.chain(
glob.glob(f"{build_environment_path}/bin/libEGL*.dll"),
glob.glob(f"{build_environment_path}/bin/libGLES*.dll"),
Expand Down
2 changes: 2 additions & 0 deletions build-aux/rnote_inno.iss.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Source: "{#meson_build_root}\dlls\*.dll"; DestDir: "{app}\bin"; Flags: ignorever

; gdk-pixbuf loaders
Source: "{#build_environment_path}\lib\gdk-pixbuf-2.0\*"; DestDir: "{app}\lib\gdk-pixbuf-2.0"; Flags: ignoreversion recursesubdirs createallsubdirs
; enchant providers
Source: "{#build_environment_path}\lib\enchant-2\*"; DestDir: "{app}\lib\enchant-2"; Flags: ignoreversion recursesubdirs createallsubdirs
; poppler-data
Source: "{#build_environment_path}\share\poppler\*"; DestDir: "{app}\share\poppler"; Flags: ignoreversion recursesubdirs createallsubdirs
; Settings GSchema
Expand Down

0 comments on commit cf6bff6

Please sign in to comment.