Skip to content

Commit 8b83a68

Browse files
committed
update appstream metainfo
1 parent be54304 commit 8b83a68

9 files changed

+104
-21
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:
19-
fetch-depth: 0
19+
fetch-depth: 0
20+
- name: Update metainfo
21+
run: ./update-metainfo.sh
22+
2023
- id: src
2124
run: |
2225
VER=${GITHUB_REF_NAME#v}
@@ -59,7 +62,7 @@ jobs:
5962
echo 'Source: fcitx5-lekhika'
6063
echo 'Section: utils'
6164
echo 'Priority: optional'
62-
echo 'Maintainer: CI <ci@example.com>'
65+
echo 'Maintainer: KHUMNATH CG<nath.khum@gmail.com>'
6366
echo 'Build-Depends: debhelper-compat (= 13), cmake, ninja-build,'
6467
echo ' libfcitx5core-dev, libfcitx5utils-dev, libfcitx5config-dev,'
6568
echo ' libsqlite3-dev, qt6-base-dev, libicu-dev, libgl-dev'
@@ -92,7 +95,7 @@ jobs:
9295
# rules file with real TABs, overriding the auto-test step
9396
printf '#!/usr/bin/make -f\n%%:\n\tdh $@ --buildsystem=cmake+ninja\noverride_dh_auto_configure:\n\tdh_auto_configure -- -DCMAKE_BUILD_TYPE=Release\noverride_dh_auto_test:\n' > debian/rules
9497
chmod +x debian/rules
95-
export DEBEMAIL=ci@example.com DEBFULLNAME="CI Bot"
98+
export DEBEMAIL=nath.khum@gmail.com DEBFULLNAME="KHUMNATH CG"
9699
VER=$(cat version.txt)
97100
dch --create -v "${VER}-1" --package fcitx5-lekhika "CI build"
98101
dpkg-buildpackage -b -uc -us
@@ -159,7 +162,7 @@ jobs:
159162
echo "%{_datadir}/applications/*.desktop"
160163
echo "%{_datadir}/icons/hicolor/*/apps/lekhika.*"
161164
echo "%changelog"
162-
echo "* $(date +"%a %b %d %Y") CI <ci@example.com> - ${VER}-1"
165+
echo "* $(date +"%a %b %d %Y") KHUMNATH CG <nath.khum@gmail.com> - ${VER}-1"
163166
echo "- Automated build"
164167
} > ~/rpmbuild/SPECS/fcitx5-lekhika.spec
165168
rpmbuild -bb ~/rpmbuild/SPECS/fcitx5-lekhika.spec
103 KB
Loading
86.8 KB
Loading
184 KB
Loading
153 KB
Loading

fcitx5-lekhika.metainfo.xml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<component type="inputmethod">
3-
<id>org.fcitx.fcitx5-lekhika</id>
2+
<component type="addon">
3+
<id>io.github.khumnath.fcitx5-lekhika</id>
4+
<extends>org.fcitx.Fcitx5.desktop</extends>
45
<name>Fcitx5 Lekhika</name>
56
<summary>Transliteration and autocorrection engine for Nepali Roman input</summary>
67
<description>
@@ -13,17 +14,35 @@
1314
It supports Indic numerals, symbol transliteration, and customizable mappings.
1415
</p>
1516
</description>
16-
<url type="homepage">https://github.com/khumnath/fcitx5-lekhika</url>
17-
<project_license>GPL-3.0-or-later</project_license>
18-
<developer_name>khumnath</developer_name>
19-
<categories>
20-
<category>InputMethod</category>
21-
<category>Utility</category>
22-
</categories>
17+
<screenshots>
18+
<screenshot type="default">
19+
<caption>Transliterating Romanized Nepali to Devanagari</caption>
20+
<image>https://raw.githubusercontent.com/khum/fcitx5-lekhika/refs/heads/main/data/Screenshot_fcitx5-lekhika_20250912125709.png</image>
21+
</screenshot>
22+
<screenshot>
23+
<caption>Configuration options for Lekhika</caption>
24+
<image>https://raw.githubusercontent.com/khum/fcitx5-lekhika/refs/heads/main/data/Screenshot_fcitx5-config_lekhika_20250912130028.png</image>
25+
</screenshot>
26+
</screenshots>
27+
<releases>
28+
<release version="2.1.0" date="2025-09-12">
29+
<description>
30+
<p>refactored release of the input method engine.</p>
31+
</description>
32+
</release>
33+
</releases>
2334
<keywords>
2435
<keyword>Fcitx5</keyword>
2536
<keyword>Nepali</keyword>
2637
<keyword>Transliteration</keyword>
2738
<keyword>Input Method</keyword>
2839
</keywords>
40+
<content_rating type="oars-1.0" />
41+
<developer id="io.github.khumnath">
42+
<id>io.github.khumnath</id>
43+
<name>khumnath</name>
44+
</developer>
45+
<project_license>GPL-3.0-or-later</project_license>
46+
<metadata_license>CC0-1.0</metadata_license>
47+
<url type="homepage">https://github.com/khumnath/fcitx5-lekhika</url>
2948
</component>
File renamed without changes.

lekhika-trainer.metainfo.xml

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,50 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<component type="desktop">
3-
<id>lekhika-trainer.desktop</id>
2+
<component type="desktop-application">
3+
<id>io.github.khumnath.lekhika-trainer</id>
44
<name>Lekhika Trainer</name>
55
<summary>Train the Lekhika input engine with Devanagari words</summary>
66
<description>
77
<p>
8-
Lekhika Trainer is a utility for importing and learning Devanagari words
9-
to enhance the autocorrection and transliteration capabilities of the
10-
fcitx5-lekhika input method engine.
8+
Lekhika Trainer is a graphical utility that helps users import and train Devanagari words
9+
to improve the autocorrection and transliteration accuracy of the fcitx5-lekhika input method engine.
10+
It supports dictionary updates, learning from user input, and integration with Fcitx5 workflows.
1111
</p>
1212
</description>
13-
<launchable type="desktop-id">lekhika-trainer.desktop</launchable>
13+
<screenshots>
14+
<screenshot type="default">
15+
<caption>Lekhika Trainer main window</caption>
16+
<image>https://raw.githubusercontent.com/khum/fcitx5-lekhika/refs/heads/main/data/Screenshot_lekhika-trainer_20250912125236.png</image>
17+
</screenshot>
18+
<screenshot>
19+
<caption>Importing new words to the dictionary</caption>
20+
<image>https://raw.githubusercontent.com/khum/fcitx5-lekhika/refs/heads/main/data/Screenshot_lekhika-trainer_20250912125316.png</image>
21+
</screenshot>
22+
</screenshots>
23+
<launchable type="desktop-id">io.github.khumnath.lekhika-trainer.desktop</launchable>
1424
<icon type="stock">lekhika</icon>
25+
<releases>
26+
<release version="2.1.0" date="2025-09-12">
27+
<description>
28+
<p>refactored and first version of gui tool of fcitx5-lekhika trainer release.</p>
29+
</description>
30+
</release>
31+
</releases>
1532
<categories>
1633
<category>Utility</category>
1734
<category>Education</category>
18-
<category>InputMethod</category>
1935
</categories>
2036
<keywords>
2137
<keyword>Devanagari</keyword>
2238
<keyword>Input Method</keyword>
2339
<keyword>Trainer</keyword>
2440
<keyword>Fcitx5</keyword>
2541
</keywords>
26-
<developer_name>khumnath</developer_name>
42+
<content_rating type="oars-1.0" />
43+
<developer id="io.github.khumnath">
44+
<id>io.github.khumnath</id>
45+
<name>khumnath</name>
46+
</developer>
2747
<project_license>GPL-3.0-or-later</project_license>
48+
<metadata_license>CC0-1.0</metadata_license>
2849
<url type="homepage">https://github.com/khumnath/fcitx5-lekhika</url>
2950
</component>

update-metainfo.sh

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
# Get version (strip leading 'v')
5+
TAG=${GITHUB_REF_NAME:-$(git describe --tags --abbrev=0)}
6+
VERSION=${TAG#v}
7+
DATE=$(date +%Y-%m-%d)
8+
9+
# Files to update
10+
FILES=(
11+
"data/fcitx5-lekhika.metainfo.xml"
12+
"data/lekhika-trainer.metainfo.xml"
13+
)
14+
15+
for FILE in "${FILES[@]}"; do
16+
if [[ ! -f "$FILE" ]]; then
17+
echo "Skipping missing $FILE"
18+
continue
19+
fi
20+
21+
echo "Updating $FILE with version $VERSION ($DATE)"
22+
23+
# Insert new release entry right after <releases>
24+
# Backup first, then overwrite
25+
cp "$FILE" "$FILE.bak"
26+
27+
awk -v ver="$VERSION" -v date="$DATE" '
28+
/<releases>/ && !done {
29+
print
30+
print " <release version=\"" ver "\" date=\"" date "\">"
31+
print " <description>"
32+
print " <p>Automated release from github CI.</p>"
33+
print " </description>"
34+
print " </release>"
35+
done=1
36+
next
37+
}
38+
{print}
39+
' "$FILE.bak" > "$FILE"
40+
done

0 commit comments

Comments
 (0)