Skip to content

Commit 817c1ef

Browse files
committed
linux-rust: add metainfo for flatpak
1 parent 681a3ff commit 817c1ef

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>me.kavishdevar.librepods</id>
4+
5+
<name>LibrePods</name>
6+
<summary>Liberate AirPods from Apple&apos;s ecosystem</summary>
7+
8+
<metadata_license>CC-BY-SA-4.0</metadata_license>
9+
<project_license>AGPL-3.0-only</project_license>
10+
11+
<description>
12+
<p>
13+
Key - Noise Control Modes: Easily switch between noise control modes without having to reach out to your AirPods to long - Ear Detection: Controls your music automatically when you put your AirPods in or take them out, and switch to phone speaker when you take them out - Battery Status: Accurate battery levels - Conversational Awareness: Volume automatically lowers when you speak - Hearing Aid: Setup Hearing Aid, even in an unsupported region
14+
</p>
15+
</description>
16+
17+
<launchable type="desktop-id">me.kavishdevar.librepods.desktop</launchable>
18+
<screenshots>
19+
<screenshot type="default">
20+
<image>https://raw.githubusercontent.com/kavishdevar/librepods/refs/heads/main/linux/imgs/main-app.png</image>
21+
</screenshot>
22+
</screenshots>
23+
</component>
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
app-id: me.kavishdevar.librepods
2+
runtime: org.freedesktop.Platform
3+
runtime-version: '25.08'
4+
sdk: org.freedesktop.Sdk
5+
sdk-extensions:
6+
- org.freedesktop.Sdk.Extension.rust-stable
7+
8+
command: librepods-rust
9+
10+
finish-args:
11+
- --socket=wayland
12+
- --socket=fallback-x11
13+
- --share=ipc
14+
- --socket=pulseaudio
15+
- --system-talk-name=org.bluez
16+
- --allow=bluetooth
17+
- --share=network
18+
19+
build-options:
20+
append-path: /usr/lib/sdk/rust-stable/bin
21+
env:
22+
CARGO_HOME: /run/build/librepods-rust/cargo
23+
CARGO_NET_OFFLINE: 'true'
24+
RUSTUP_HOME: /usr/lib/sdk/rust-stable
25+
26+
modules:
27+
- name: librepods-rust
28+
buildsystem: simple
29+
build-options:
30+
env:
31+
CARGO_NET_OFFLINE: 'true'
32+
build-commands:
33+
- cargo build --release --frozen --offline --verbose
34+
- install -Dm755 target/release/librepods-rust ${FLATPAK_DEST}/bin/librepods-rust
35+
- install -Dm644 assets/icon.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
36+
- install -Dm644 assets/me.kavishdevar.librepods.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
37+
- install -Dm644 flatpak/me.kavishdevar.librepods.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
38+
sources:
39+
- type: archive
40+
url: https://github.com/kavishdevar/librepods/releases/download/v1.0.0/librepods-rust-1.0.0-source.tar.gz
41+
sha256: 0a8993c06b07032ec0203127de527e9f7c042d1d093ed16435e7ec32db3fec06

0 commit comments

Comments
 (0)