mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-02-01 15:49:10 +00:00
linux-rust: add metainfo for flatpak
This commit is contained in:
23
linux-rust/flatpak/me.kavishdevar.librepods.metainfo.xml
Normal file
23
linux-rust/flatpak/me.kavishdevar.librepods.metainfo.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<component type="desktop-application">
|
||||
<id>me.kavishdevar.librepods</id>
|
||||
|
||||
<name>LibrePods</name>
|
||||
<summary>Liberate AirPods from Apple's ecosystem</summary>
|
||||
|
||||
<metadata_license>CC-BY-SA-4.0</metadata_license>
|
||||
<project_license>AGPL-3.0-only</project_license>
|
||||
|
||||
<description>
|
||||
<p>
|
||||
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
|
||||
</p>
|
||||
</description>
|
||||
|
||||
<launchable type="desktop-id">me.kavishdevar.librepods.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://raw.githubusercontent.com/kavishdevar/librepods/refs/heads/main/linux/imgs/main-app.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
</component>
|
||||
41
linux-rust/flatpak/me.kavishdevar.librepods.yaml
Normal file
41
linux-rust/flatpak/me.kavishdevar.librepods.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
app-id: me.kavishdevar.librepods
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '25.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
sdk-extensions:
|
||||
- org.freedesktop.Sdk.Extension.rust-stable
|
||||
|
||||
command: librepods-rust
|
||||
|
||||
finish-args:
|
||||
- --socket=wayland
|
||||
- --socket=fallback-x11
|
||||
- --share=ipc
|
||||
- --socket=pulseaudio
|
||||
- --system-talk-name=org.bluez
|
||||
- --allow=bluetooth
|
||||
- --share=network
|
||||
|
||||
build-options:
|
||||
append-path: /usr/lib/sdk/rust-stable/bin
|
||||
env:
|
||||
CARGO_HOME: /run/build/librepods-rust/cargo
|
||||
CARGO_NET_OFFLINE: 'true'
|
||||
RUSTUP_HOME: /usr/lib/sdk/rust-stable
|
||||
|
||||
modules:
|
||||
- name: librepods-rust
|
||||
buildsystem: simple
|
||||
build-options:
|
||||
env:
|
||||
CARGO_NET_OFFLINE: 'true'
|
||||
build-commands:
|
||||
- cargo build --release --frozen --offline --verbose
|
||||
- install -Dm755 target/release/librepods-rust ${FLATPAK_DEST}/bin/librepods-rust
|
||||
- install -Dm644 assets/icon.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
|
||||
- install -Dm644 assets/me.kavishdevar.librepods.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
||||
- install -Dm644 flatpak/me.kavishdevar.librepods.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
||||
sources:
|
||||
- type: archive
|
||||
url: https://github.com/kavishdevar/librepods/releases/download/v1.0.0/librepods-rust-1.0.0-source.tar.gz
|
||||
sha256: 0a8993c06b07032ec0203127de527e9f7c042d1d093ed16435e7ec32db3fec06
|
||||
Reference in New Issue
Block a user