1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-04-19 17:36:50 +00:00

Add Flatpak manifest

This commit is contained in:
Joshua Goins 2024-12-16 22:09:44 -05:00
parent fd128c3f43
commit 6c49c9bcb8
6 changed files with 4138 additions and 181 deletions

59
.flatpak-manifest.json Normal file
View file

@ -0,0 +1,59 @@
{
"id": "zone.xiv.auracite",
"branch": "master",
"runtime": "org.kde.Platform",
"runtime-version": "6.7",
"sdk": "org.kde.Sdk",
"command": "auracite",
"finish-args": [
"--device=dri",
"--env=QML_IMPORT_PATH=/app/qml",
"--env=QT_PLUGIN_PATH=/app/plugins:/app/lib64/plugins:/app/lib/plugins:/usr/share/runtime/lib/plugins",
"--share=network",
"--socket=fallback-x11",
"--socket=wayland"
],
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"build-options": {
"append-path" : "/usr/lib/sdk/rust-stable/bin",
"env" : {
"CARGO_HOME" : "/run/build/auracite/cargo"
}
},
"modules": [
{
"name": "kirigami-addons",
"config-opts": [
"-DBUILD_TESTING=OFF",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
],
"buildsystem": "cmake-ninja",
"sources": [
{
"type": "git",
"url": "https://invent.kde.org/libraries/kirigami-addons.git"
}
]
},
{
"name": "auracite",
"buildsystem": "simple",
"build-commands": [
"cargo --offline fetch --manifest-path Cargo.toml",
"cargo --offline build --release",
"install -Dm755 ./target/release/auracite -t /app/bin/",
"install -Dm644 ./zone.xiv.auracite.svg -t /app/share/icons/hicolor/scalable/apps/",
"install -Dm644 ./zone.xiv.auracite.desktop -t /app/share/applications/"
],
"sources": [
{
"type": "dir",
"path": "."
},
"generated-sources.json"
]
}
]
}

655
Cargo.lock generated

File diff suppressed because it is too large Load diff

1
FLATPAK.md Normal file
View file

@ -0,0 +1 @@
When Cargo.lock changes, `generated-sources.json` must be updated and that's from https://github.com/flatpak/flatpak-builder-tools/blob/master/cargo/flatpak-cargo-generator.py.

3594
generated-sources.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -28,14 +28,13 @@ fn main() {
KLocalizedString::set_application_domain(&QByteArray::from("auracite"));
let mut about_data = KAboutData::from(
QString::from("auracite"),
QString::from("zone.xiv.auracite"),
i18nc("@title", "Auracite"),
QString::from(option_env!("CARGO_PKG_VERSION").unwrap()),
i18nc("@title", "Export your FFXIV character in portable, generic formats."),
License::GPL_V3,
);
let Some(mut about_data) = about_data.as_mut() else {
return;
};

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Auracite
Exec=auracite %u
Terminal=false
Icon=zone.xiv.auracite
Type=Application
SingleMainWindow=true