Skip to content

Commit 80615ed

Browse files
committed
Fixing metainfo.
1 parent 4655ecf commit 80615ed

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

branding/metainfo.xml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
<component type="addon">
1414

15-
<id>@PRODUCT_NAME@-python</id>
16-
<extends>@PRODUCT_ID@.terminal.desktop</extends>
15+
<id>@PRODUCT_ID@.python</id>
16+
<extends>@PRODUCT_ID@.terminal</extends>
1717

1818
<metadata_license>CC0-1.0</metadata_license>
1919
<project_license>LGPL-3.0</project_license>

meson.build

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ project(
2121
'pytn3270',
2222
['c', 'cpp'],
2323
version: '5.5.0',
24-
default_options : ['cpp_std=c++17'],
24+
default_options : ['cpp_std=c++17', 'buildtype=release' ],
2525
license: 'GPL-3.0-or-later',
2626
)
2727

@@ -87,7 +87,8 @@ app_conf.set('PACKAGE_VERSION_MAJOR', pkg_major_version)
8787
app_conf.set('PACKAGE_VERSION_MINOR', pkg_minor_version)
8888
app_conf.set('PACKAGE_VERSION_MICRO', pkg_micro_version)
8989

90-
app_conf.set('PRODUCT_NAME', meson.project_name())
90+
app_conf.set('PRODUCT_ID',ipc3270.get_variable('product_id'))
91+
app_conf.set('PRODUCT_NAME', ipc3270.get_variable('product_name'))
9192
app_conf.set('PRODUCT_VERSION', meson.project_version())
9293

9394
if cxx.compiles('#include <unistd.h>', name : 'unistd.h')
@@ -155,4 +156,10 @@ shared_library(
155156
include_directories: includes_dir
156157
)
157158

159+
configure_file(
160+
input : 'branding/metainfo.xml.in',
161+
output : ipc3270.get_variable('product_id') + '.python.metainfo.xml',
162+
install_dir: get_option('datadir') / 'metainfo',
163+
configuration : app_conf
164+
)
158165

0 commit comments

Comments
 (0)