linux: fix metadata to match our flatpak package (#15126)
We're stuck with `rocks.koreader.KOReader` (cf. flathub/rocks.koreader.KOReader#65).
This commit is contained in:
1 parent
bb04cb8a1f
commit
6b6ecb5b05
4 files changed
+11
-11
No files matched your search
+6
-6
@@ -2,7 +2,7 @@ LINUX_DIR = $(PLATFORM_DIR)/linux
|
||||
LINUX_PACKAGE = koreader-linux-$(LINUX_ARCH)$(KODEDUG_SUFFIX)-$(VERSION).tar.xz
|
||||
|
||||
DIST_DIR = $(INSTALL_DIR)/dist
|
||||
DIST_APPID = rocks.koreader.koreader
|
||||
DIST_APPID = rocks.koreader.KOReader
|
||||
|
||||
GLIBC_VERSION = $(shell ldd --version | sed -n '1s/.* \([0-9.]\+\)$$/\1/p')
|
||||
|
||||
@@ -17,16 +17,16 @@ define mkupdate_linux
|
||||
# Setup launcher to use ~/.config/koreader for writable storage.
|
||||
sed -i -e 's/^# export @KOREADER_FLAVOR@$$/export KO_MULTIUSER=1/' $1/usr/lib/koreader/koreader.sh
|
||||
# AppStream metadata.
|
||||
install -D -m644 $(LINUX_DIR)/koreader.metainfo.xml $1/usr/share/metainfo/$(DIST_APPID).appdata.xml
|
||||
sed -i -e 's/%%VERSION%%/$(VERSION)/' -e 's/%%DATE%%/$(RELEASE_DATE)/' $1/usr/share/metainfo/$(DIST_APPID).appdata.xml
|
||||
install -D -m644 $(LINUX_DIR)/koreader.metainfo.xml $1/usr/share/metainfo/$(DIST_APPID).metainfo.xml
|
||||
sed -i -e 's/%%VERSION%%/$(VERSION)/' -e 's/%%DATE%%/$(RELEASE_DATE)/' $1/usr/share/metainfo/$(DIST_APPID).metainfo.xml
|
||||
# Copyright & license information.
|
||||
install -D -m644 COPYING $(LINUX_DIR)/copyright -t $1/usr/share/doc/koreader/
|
||||
# Desktop entry.
|
||||
install -D -m644 $(LINUX_DIR)/koreader.desktop $1/usr/share/applications/$(DIST_APPID).desktop
|
||||
# Icons.
|
||||
install -D -m644 $(LINUX_DIR)/icons/256x256/koreader.png -t $1/usr/share/icons/hicolor/256x256/apps/
|
||||
install -D -m644 $(LINUX_DIR)/icons/512x512/koreader.png -t $1/usr/share/icons/hicolor/512x512/apps/
|
||||
install -D -m644 resources/koreader.svg -t $1/usr/share/icons/hicolor/scalable/apps/
|
||||
install -D -m644 $(LINUX_DIR)/icons/256x256/koreader.png $1/usr/share/icons/hicolor/256x256/apps/$(DIST_APPID).png
|
||||
install -D -m644 $(LINUX_DIR)/icons/512x512/koreader.png $1/usr/share/icons/hicolor/512x512/apps/$(DIST_APPID).png
|
||||
install -D -m644 resources/koreader.svg $1/usr/share/icons/hicolor/scalable/apps/$(DIST_APPID).svg
|
||||
# Man page.
|
||||
install -D -m644 $(LINUX_DIR)/koreader.1 -t $1/usr/share/man/man1/
|
||||
gzip -9 $1/usr/share/man/man1/koreader.1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Name=KOReader
|
||||
Comment=Ebook reader
|
||||
Exec=koreader %u
|
||||
Icon=koreader
|
||||
Icon=rocks.koreader.KOReader
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Graphics;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--Do not edit this file. Edit "tools/update-metadata.lua" instead-->
|
||||
<component type="desktop-application">
|
||||
<id>rocks.koreader.koreader</id>
|
||||
<id>rocks.koreader.KOReader</id>
|
||||
|
||||
<name>KOReader</name>
|
||||
<developer id="rocks.koreader">
|
||||
@@ -81,7 +81,7 @@
|
||||
<mediatype>text/plain</mediatype>
|
||||
</provides>
|
||||
|
||||
<launchable type="desktop-id">rocks.koreader.koreader.desktop</launchable>
|
||||
<launchable type="desktop-id">rocks.koreader.KOReader.desktop</launchable>
|
||||
|
||||
<categories>
|
||||
<category>Office</category>
|
||||
|
||||
@@ -70,7 +70,7 @@ local metadata = {
|
||||
|
||||
-- appstream metadata that needs no translation
|
||||
component = [[
|
||||
<id>rocks.koreader.koreader</id>
|
||||
<id>rocks.koreader.KOReader</id>
|
||||
|
||||
<name>KOReader</name>
|
||||
<developer id="rocks.koreader">
|
||||
@@ -150,7 +150,7 @@ local metadata = {
|
||||
<mediatype>text/plain</mediatype>
|
||||
</provides>
|
||||
|
||||
<launchable type="desktop-id">rocks.koreader.koreader.desktop</launchable>
|
||||
<launchable type="desktop-id">rocks.koreader.KOReader.desktop</launchable>
|
||||
|
||||
<categories>
|
||||
<category>Office</category>
|
||||
|
||||
Reference in new issue
Block a user