Centralize the project's URL

This commit is contained in:
Přemysl Eric Janouch 2023-06-26 15:43:45 +02:00
parent ec713b633e
commit 2869c656c1
Signed by: p
GPG Key ID: A0420B94F92B9493
3 changed files with 5 additions and 2 deletions

2
fiv.c
View File

@ -458,7 +458,7 @@ show_about_dialog(GtkWidget *parent)
GtkWidget *website = gtk_label_new(NULL); GtkWidget *website = gtk_label_new(NULL);
gtk_label_set_selectable(GTK_LABEL(website), TRUE); gtk_label_set_selectable(GTK_LABEL(website), TRUE);
const char *url = "https://git.janouch.name/p/" PROJECT_NAME; const char *url = PROJECT_URL;
gchar *link = g_strdup_printf("<a href='%s'>%s</a>", url, url); gchar *link = g_strdup_printf("<a href='%s'>%s</a>", url, url);
gtk_label_set_markup(GTK_LABEL(website), link); gtk_label_set_markup(GTK_LABEL(website), link);
g_free(link); g_free(link);

View File

@ -27,7 +27,7 @@
<Media Id='1' Cabinet='data.cab' EmbedCab='yes' /> <Media Id='1' Cabinet='data.cab' EmbedCab='yes' />
<Icon Id='fiv.ico' SourceFile='fiv.ico' /> <Icon Id='fiv.ico' SourceFile='fiv.ico' />
<Property Id='ARPPRODUCTICON' Value='fiv.ico' /> <Property Id='ARPPRODUCTICON' Value='fiv.ico' />
<Property Id='ARPURLINFOABOUT' Value='https://git.janouch.name/p/fiv' /> <Property Id='ARPURLINFOABOUT' Value='@ProjectURL@' />
<UIRef Id='WixUI_Minimal' /> <UIRef Id='WixUI_Minimal' />
<!-- This isn't supported by msitools, but is necessary for WiX. <!-- This isn't supported by msitools, but is necessary for WiX.

View File

@ -93,11 +93,13 @@ endif
# XXX: https://github.com/mesonbuild/meson/issues/825 # XXX: https://github.com/mesonbuild/meson/issues/825
docdir = get_option('datadir') / 'doc' / meson.project_name() docdir = get_option('datadir') / 'doc' / meson.project_name()
application_ns = 'name.janouch.' application_ns = 'name.janouch.'
application_url = 'https://janouch.name/p/' + meson.project_name()
conf = configuration_data() conf = configuration_data()
conf.set_quoted('PROJECT_NAME', meson.project_name()) conf.set_quoted('PROJECT_NAME', meson.project_name())
conf.set_quoted('PROJECT_VERSION', '@VCS_TAG@') conf.set_quoted('PROJECT_VERSION', '@VCS_TAG@')
conf.set_quoted('PROJECT_NS', application_ns) conf.set_quoted('PROJECT_NS', application_ns)
conf.set_quoted('PROJECT_URL', application_url)
conf.set_quoted('PROJECT_DOCDIR', get_option('prefix') / docdir) conf.set_quoted('PROJECT_DOCDIR', get_option('prefix') / docdir)
if win32 if win32
conf.set_quoted('PROJECT_DOCDIR', docdir) conf.set_quoted('PROJECT_DOCDIR', docdir)
@ -344,6 +346,7 @@ elif meson.is_cross_build()
configuration : configuration_data({ configuration : configuration_data({
'ProjectName' : meson.project_name(), 'ProjectName' : meson.project_name(),
'ProjectVersion' : meson.project_version(), 'ProjectVersion' : meson.project_version(),
'ProjectURL' : application_url,
}), }),
) )
custom_target('package', custom_target('package',