Skip to content

Commit eda0c3f

Browse files
authored
package: add AppStream metainfo (#221)
1 parent afab386 commit eda0c3f

5 files changed

Lines changed: 68 additions & 1 deletion

File tree

.github/bump-hook.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ set -euxo pipefail
44
PLATFORM_DIR="$PWD"
55
HELIUM_DIR="$PLATFORM_DIR/helium-chromium"
66
SPEC="$PLATFORM_DIR/package/helium-bin.spec"
7+
METAINFO="$PLATFORM_DIR/package/net.imput.helium.metainfo.xml"
78

89
# version_after is exported by `bump-platform` action
910
sed -Ei "s/^(%define version ).*/\1$version_after/" "$SPEC"
10-
git add -u "$SPEC"
11+
12+
RELEASE_DATE=$(date +%Y-%m-%d)
13+
sed -Ei 's/(<release version=")(.*)(" date=")(.*)(" \/>)/'"\1$version_after\3$RELEASE_DATE\5/" "$METAINFO"
14+
15+
git add -u "$SPEC" "$METAINFO"

package/helium-bin.spec

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ License: GPL-3.0
99
URL: https://github.com/imputnet/helium-linux
1010
Source0: https://github.com/imputnet/helium-linux/releases/download/%{version}/helium-%{version}-x86_64_linux.tar.xz
1111
Source1: https://github.com/imputnet/helium-linux/releases/download/%{version}/helium-%{version}-arm64_linux.tar.xz
12+
Source2: net.imput.helium.metainfo.xml
1213

1314
%if 0%{?debbuild}
1415
Packager: imput <helium@imput.net>
@@ -37,6 +38,7 @@ Private, fast, and honest web browser based on Chromium
3738
mkdir -p %{heliumdir} \
3839
%{buildroot}%{_bindir} \
3940
%{buildroot}%{_datadir}/applications \
41+
%{buildroot}%{_datadir}/metainfo \
4042
%{buildroot}%{_datadir}/icons/hicolor/256x256/apps
4143

4244
cp -a . %{heliumdir}
@@ -55,6 +57,9 @@ install -m 644 product_logo_256.png \
5557
install -m 644 %{heliumdir}/helium.desktop \
5658
%{buildroot}%{_datadir}/applications/
5759

60+
install -m 644 %{SOURCE2} \
61+
%{buildroot}%{_datadir}/metainfo/net.imput.helium.metainfo.xml
62+
5863
ln -sf %{helium_base}/helium-wrapper \
5964
%{buildroot}%{_bindir}/helium
6065

@@ -63,6 +68,7 @@ ln -sf %{helium_base}/helium-wrapper \
6368
%{helium_base}/
6469
%{_bindir}/helium
6570
%{_datadir}/applications/helium.desktop
71+
%{_datadir}/metainfo/net.imput.helium.metainfo.xml
6672
%{_datadir}/icons/hicolor/256x256/apps/helium.png
6773

6874
%post
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<component type="desktop-application">
3+
<id>net.imput.helium</id>
4+
<launchable type="desktop-id">helium.desktop</launchable>
5+
<metadata_license>CC0-1.0</metadata_license>
6+
<project_license>GPL-3.0-only</project_license>
7+
<name>Helium</name>
8+
<summary>Private, fast, and honest web browser</summary>
9+
<description>
10+
<p>
11+
Helium is a private, fast, and honest web browser based on Chromium.
12+
It prioritizes user privacy while maintaining excellent performance and
13+
a clean browsing experience.
14+
</p>
15+
<p>Features:</p>
16+
<ul>
17+
<li>Private browsing by default</li>
18+
<li>Fast performance based on Chromium</li>
19+
<li>Honest and transparent development</li>
20+
<li>Cross-platform support</li>
21+
<li>Open-source software</li>
22+
</ul>
23+
</description>
24+
<url type="homepage">https://github.com/imputnet/helium-linux</url>
25+
<url type="bugtracker">https://github.com/imputnet/helium-linux/issues</url>
26+
<url type="help">https://github.com/imputnet/helium-linux</url>
27+
<screenshots>
28+
<screenshot type="default">
29+
<caption>Kagi search results showing web pages and videos</caption>
30+
<image
31+
>https://raw.githubusercontent.com/imputnet/helium-linux/refs/heads/main/package/screenshots/lead.png</image>
32+
</screenshot>
33+
<screenshot>
34+
<caption>Viewing Wikipedia articles with image galleries</caption>
35+
<image
36+
>https://raw.githubusercontent.com/imputnet/helium-linux/refs/heads/main/package/screenshots/split-view.png</image>
37+
</screenshot>
38+
</screenshots>
39+
<content_rating type="oars-1.1" />
40+
<releases>
41+
<release version="0.10.5.1" date="2026-03-14" />
42+
</releases>
43+
<developer id="net.imput">
44+
<name>imput</name>
45+
</developer>
46+
<keywords>
47+
<keyword>browser</keyword>
48+
<keyword>web</keyword>
49+
<keyword>internet</keyword>
50+
<keyword>privacy</keyword>
51+
</keywords>
52+
<categories>
53+
<category>Network</category>
54+
<category>WebBrowser</category>
55+
</categories>
56+
</component>

package/screenshots/lead.png

312 KB
Loading

package/screenshots/split-view.png

1.58 MB
Loading

0 commit comments

Comments
 (0)