Skip to content

Commit

Permalink
Package lua-lgi and dependencies on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Lötscher authored and rolandlo committed Dec 14, 2024
1 parent 8feb204 commit dcae23d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/install_deps_windows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ runs:
mingw-w64-x86_64-lua
mingw-w64-x86_64-gtksourceview4
mingw-w64-x86_64-imagemagick
mingw-w64-x86_64-lua-lgi
- shell: msys2 {0}
# Apply https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/595 to cairo-1.18.2-1 to fix #6014
# Can be removed if either msys' packages include that fix by hand or cairo-1.18.3 is released.
Expand Down
11 changes: 11 additions & 0 deletions windows-setup/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ cp /mingw64/bin/gspawn-win64-helper-console.exe "$setup_dir"/bin
echo "copy gdbus"
cp /mingw64/bin/gdbus.exe "$setup_dir"/bin

echo "copy lua-lgi and dependencies"
cp /mingw64/bin/libgirepository-1.0-1.dll "$setup_dir"/bin
mkdir -p "$setup_dir"/lib/lua/5.4/lgi
cp /mingw64/lib/lua/5.4/lgi/corelgilua51.dll "$setup_dir"/lib/lua/5.4/lgi
cp /mingw64/lib/libgirepository-1.0.dll.a "$setup_dir"/lib
mkdir "$setup_dir"/lib/girepository-1.0
cp /mingw64/lib/girepository-1.0/*.typelib "$setup_dir"/lib/girepository-1.0
mkdir -p "$setup_dir"/share/lua/5.4
cp /mingw64/share/lua/5.4/lgi.lua "$setup_dir"/share/lua/5.4
cp -r /mingw64/share/lua/5.4/lgi/ "$setup_dir"/share/lua/5.4

echo "create installer"
bash make_version_nsh.sh
"/c/Program Files (x86)/NSIS/Bin/makensis.exe" xournalpp.nsi
Expand Down

0 comments on commit dcae23d

Please sign in to comment.