feat: add metadata to Cargo.toml; get developers from Cargo.toml authors; rectify SPDX id for license as AGPL-3.0-or-later

This commit is contained in:
Gabriele Musco 2024-12-08 12:02:51 +01:00
parent ce5f486596
commit 68d7757aa4
5 changed files with 18 additions and 8 deletions

View file

@ -2,6 +2,15 @@
name = "envision"
version = "1.1.1"
edition = "2021"
authors = [
"Gabriele Musco <gabmus@disroot.org>",
]
description = "Orchestrator for the free XR stack"
repository = "https://gitlab.com/gabmus/envision"
documentation = "https://gitlab.com/gabmus/envision"
license = "AGPL-3.0-or-later"
keywords = ["desktop", "linux", "vr", "xr", "gtk"]
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -2,7 +2,7 @@
<component type="desktop-application">
<id>@APP_ID@</id>
<metadata_license>CC0</metadata_license>
<project_license>AGPL-3.0</project_license>
<project_license>AGPL-3.0-or-later</project_license>
<name translatable="no">@PRETTY_NAME@</name>
<summary>GUI for Monado</summary>
<description>

View file

@ -3,7 +3,7 @@ project(
'rust',
version: '1.1.1', # version number row
meson_version: '>= 0.59',
license: 'AGPL-3.0',
license: 'AGPL-3.0-or-later',
)
i18n = import('i18n')

View file

@ -16,10 +16,6 @@ pub const LOCALE_DIR: &str = "@LOCALEDIR@";
pub const BUILD_PROFILE: &str = "@PROFILE@";
pub const BUILD_DATETIME: &str = "@BUILD_DATETIME@";
pub fn get_developers() -> Vec<String> {
vec!["Gabriele Musco <gabmus@disroot.org>".into()]
}
pub fn get_artists() -> Vec<String> {
vec!["App Icon: Yannick (@Yandr)".into()]
}

View file

@ -1,6 +1,6 @@
use crate::{
constants::{
get_artists, get_developers, APP_ID, APP_NAME, BUILD_DATETIME, ISSUES_URL, REPO_URL,
get_artists, APP_ID, APP_NAME, BUILD_DATETIME, ISSUES_URL, REPO_URL,
SINGLE_DEVELOPER, VERSION,
},
device_prober::PhysicalXRDevice,
@ -20,7 +20,12 @@ pub fn create_about_dialog() -> adw::AboutDialog {
.website(REPO_URL)
.issue_url(ISSUES_URL)
.developer_name(SINGLE_DEVELOPER)
.developers(get_developers())
.developers(
env!("CARGO_PKG_AUTHORS")
.split(':')
.map(|s| s.to_string())
.collect::<Vec<String>>(),
)
.artists(get_artists())
.build()
}