Private
Public Access
1
0

Desktop/icon files, rpm dist

This commit is contained in:
2025-07-15 18:42:05 -07:00
parent bb74604a74
commit 349a644b0e
6 changed files with 138 additions and 1 deletions

View File

@@ -8,12 +8,46 @@ dependencies = [
]
gnome = import('gnome')
kp_prefix = get_option('prefix')
datadir = join_paths(kp_prefix, get_option('datadir'))
resources = gnome.compile_resources(
'kordophone-resources',
'resources/kordophone.gresource.xml',
source_dir: 'resources'
)
# Icons
app_icon_dirs = [
'16x16',
'24x24',
'32x32',
'48x48',
'256x256',
'512x512',
]
build_tools_dir = meson.source_root() / 'build-aux'
image_magick = find_program('magick', required : true)
resizer = find_program(build_tools_dir / 'resize.py')
icons = custom_target('icons',
output: 'hicolor',
input: 'resources/net.buzzert.kordophone.png',
command: [resizer, image_magick, '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: join_paths(datadir, 'icons'),
)
# Full res icon for Desktop Entry
install_data('resources/net.buzzert.kordophone.png',
install_dir: join_paths(datadir, 'icons'),
)
# Desktop
install_data('resources/net.buzzert.kordophone.desktop',
install_dir: join_paths(datadir, 'applications')
)
sources = [
'application/kordophone-application.vala',
'application/main-window.vala',
@@ -49,8 +83,9 @@ sources = [
executable('kordophone',
sources,
resources,
icons,
dependencies : dependencies,
vala_args: ['--pkg', 'posix'],
link_args: ['-lm'],
install : true
)
)

View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Kordophone
Comment=Kordophone GTK Client
Exec=kordophone
Icon=net.buzzert.kordophone.png
Terminal=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 KiB