Fix build instructions, add .deb generation

This commit is contained in:
Přemysl Eric Janouch 2023-06-27 19:04:18 +02:00
parent 8ff33e6b63
commit 117422ade5
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 18 additions and 5 deletions

View File

@ -49,17 +49,20 @@ Runtime dependencies for reverse image search:
xdg-utils, cURL, jq
$ git clone --recursive https://git.janouch.name/p/fiv.git
$ cd fiv
$ meson setup builddir
$ cd builddir
$ meson compile
Considering the vast amount of dynamically-linked dependencies, do not attempt
direct installations via `ninja install`. To test the program:
$ meson devenv fiv
The lossless JPEG cropper and reverse image search are intended to be invoked
from a context menu.
from a file manager context menu.
For proper integration, you will need to install the application. On Debian,
you can get a quick and dirty installation package for testing purposes using:
$ meson compile deb
# dpkg -i fiv-*.deb
Windows
~~~~~~~

View File

@ -335,6 +335,16 @@ if not win32
if not meson.is_cross_build()
meson.add_install_script(updater, skip_if_destdir : dynamic_desktops)
endif
# Quick and dirty package generation, lacking dependencies.
packaging = configuration_data({
'name' : meson.project_name(),
'version' : meson.project_version(),
'summary' : 'Image viewer',
'author' : 'Přemysl Eric Janouch',
})
subdir('submodules/liberty/meson/packaging')
elif meson.is_cross_build()
# Note that even compiling /from within MSYS2/ can still be a cross-build.
msys2_root = meson.get_external_property('msys2_root')