prepare for lite rssguard for flatpak
This commit is contained in:
parent
a0c279130e
commit
0029d45cbb
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2017-2020 Martin Rotter <rotter.martinos@gmail.com> -->
|
||||
<!-- Copyright 2017-2022 Martin Rotter <rotter.martinos@gmail.com> -->
|
||||
<component type="desktop-application">
|
||||
<id>com.github.rssguard.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
|
57
resources/desktop/com.github.rssguardlite.appdata.xml
Normal file
57
resources/desktop/com.github.rssguardlite.appdata.xml
Normal file
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright 2017-2022 Martin Rotter <rotter.martinos@gmail.com> -->
|
||||
<component type="desktop-application">
|
||||
<id>com.github.rssguardlite.desktop</id>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-3.0</project_license>
|
||||
<name>RSS Guard (lite)</name>
|
||||
<update_contact>rotter.martinos_AT_gmail.com</update_contact>
|
||||
<summary>Simple (yet powerful) feed reader</summary>
|
||||
<translation type="qt">rssguard</translation>
|
||||
<description>
|
||||
<p>
|
||||
RSS Guard is simple (yet powerful) feed reader. It is able to fetch the most known feed formats, including RSS/RDF and ATOM. RSS Guard is developed on top of the Qt library.
|
||||
</p>
|
||||
<p>
|
||||
This build of RSS Guard does not contain QtWebEngine module and some other things and is meant for users who prefer more secure and lightweight app.
|
||||
</p>
|
||||
</description>
|
||||
<launchable type="desktop-id">com.github.rssguard.desktop</launchable>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://raw.githubusercontent.com/martinrotter/rssguard/master/resources/docs/images/rssguard-window.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="homepage">https://github.com/martinrotter/rssguard</url>
|
||||
<url type="bugtracker">https://github.com/martinrotter/rssguard/issues</url>
|
||||
<url type="donation">https://github.com/sponsors/martinrotter</url>
|
||||
<content_rating type="oars-1.1" />
|
||||
<releases>
|
||||
<release version="4.2.5" date="2022-10-21"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.0">
|
||||
<content_attribute id="violence-cartoon">none</content_attribute>
|
||||
<content_attribute id="violence-fantasy">none</content_attribute>
|
||||
<content_attribute id="violence-realistic">none</content_attribute>
|
||||
<content_attribute id="violence-bloodshed">none</content_attribute>
|
||||
<content_attribute id="violence-sexual">none</content_attribute>
|
||||
<content_attribute id="drugs-alcohol">none</content_attribute>
|
||||
<content_attribute id="drugs-narcotics">none</content_attribute>
|
||||
<content_attribute id="drugs-tobacco">none</content_attribute>
|
||||
<content_attribute id="sex-nudity">none</content_attribute>
|
||||
<content_attribute id="sex-themes">none</content_attribute>
|
||||
<content_attribute id="language-profanity">none</content_attribute>
|
||||
<content_attribute id="language-humor">none</content_attribute>
|
||||
<content_attribute id="language-discrimination">none</content_attribute>
|
||||
<content_attribute id="social-chat">none</content_attribute>
|
||||
<content_attribute id="social-info">none</content_attribute>
|
||||
<content_attribute id="social-audio">none</content_attribute>
|
||||
<content_attribute id="social-location">none</content_attribute>
|
||||
<content_attribute id="social-contacts">none</content_attribute>
|
||||
<content_attribute id="money-purchasing">none</content_attribute>
|
||||
<content_attribute id="money-gambling">none</content_attribute>
|
||||
</content_rating>
|
||||
<provides>
|
||||
<binary>rssguard</binary>
|
||||
</provides>
|
||||
</component>
|
@ -1,16 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -- resources/desktop/*.appdata.xml
|
||||
appdata_file="$1"
|
||||
appdata_file_n="${1}.n"
|
||||
changelog_file="resources/text/CHANGELOG"
|
||||
|
||||
# Set version and date.
|
||||
datestring="$(date +%F)"
|
||||
versionstring="$(head -n 1 "$changelog_file")"
|
||||
|
||||
cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n"
|
||||
mv "$appdata_file_n" "$appdata_file"
|
||||
for appdata_file in resources/desktop/*.appdata.xml; do
|
||||
appdata_file_n="${appdata_file}.n"
|
||||
|
||||
# Set version and date.
|
||||
cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n"
|
||||
mv "$appdata_file_n" "$appdata_file"
|
||||
|
||||
git add "$appdata_file"
|
||||
done
|
||||
|
||||
git add "$appdata_file"
|
||||
exit 0
|
@ -189,7 +189,11 @@ bool SystemFactory::setAutoStartStatus(AutoStartStatus new_status) {
|
||||
args = FROM_STD_LIST(QStringList, std_args);
|
||||
|
||||
#if defined(IS_FLATPAK_BUILD)
|
||||
#if defined(USE_WEBENGINE)
|
||||
const QString flatpak_run = QSL("flatpak run %1").arg(QSL(APP_REVERSE_NAME));
|
||||
#else
|
||||
const QString flatpak_run = QSL("flatpak run %1lite").arg(QSL(APP_REVERSE_NAME));
|
||||
#endif
|
||||
|
||||
args = args.mid(1);
|
||||
args.prepend(flatpak_run);
|
||||
|
@ -66,9 +66,18 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROID)
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/resources/desktop/${APP_REVERSE_NAME}.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications
|
||||
)
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/resources/desktop/${APP_REVERSE_NAME}.appdata.xml
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
|
||||
)
|
||||
|
||||
if(USE_WEBENGINE)
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/resources/desktop/${APP_REVERSE_NAME}.appdata.xml
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
|
||||
)
|
||||
else()
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/resources/desktop/${APP_REVERSE_NAME}lite.appdata.xml
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/metainfo
|
||||
RENAME ${APP_REVERSE_NAME}.appdata.xml
|
||||
)
|
||||
endif()
|
||||
|
||||
install(FILES ${CMAKE_SOURCE_DIR}/resources/graphics/${CMAKE_PROJECT_NAME}.png
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user