update .desktop and appstream xml

This commit is contained in:
shenleban tongying 2023-05-17 19:56:17 -04:00 committed by xiaoyifang
parent 33d17365b1
commit d0b2349156
5 changed files with 44 additions and 47 deletions

View file

@ -168,8 +168,8 @@ if (APPLE)
endif ()
if (LINUX OR BSD)
install(FILES ${CMAKE_SOURCE_DIR}/redist/org.goldendict.GoldenDict.desktop DESTINATION share/applications)
install(FILES ${CMAKE_SOURCE_DIR}/redist/org.goldendict.GoldenDict.metainfo.xml DESTINATION share/metainfo)
install(FILES ${CMAKE_SOURCE_DIR}/redist/org.xiaoyifang.GoldenDict_NG.desktop DESTINATION share/applications)
install(FILES ${CMAKE_SOURCE_DIR}/redist/org.xiaoyifang.GoldenDict_NG.metainfo.xml DESTINATION share/metainfo)
install(FILES ${CMAKE_SOURCE_DIR}/redist/icons/goldendict.png DESTINATION share/pixmaps)

View file

@ -1,42 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2019 Vitaly Zaitsev <vitaly@easycoding.org> -->
<component type="desktop">
<id>org.goldendict.GoldenDict</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>GoldenDict</name>
<summary>Dictionary lookup program</summary>
<description>
<p>
GoldenDict is a feature-rich dictionary lookup program, supporting multiple
dictionary formats (StarDict/Babylon/Lingvo/Dictd/AARD/MDict/SDict) and
online dictionaries, featuring perfect article rendering with the complete
markup, illustrations and other content retained, and allowing you to type
in words without any accents or correct case.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>http://goldendict.org/screenshots/sprechen-wiktionary.png</image>
</screenshot>
<screenshot>
<image>http://goldendict.org/screenshots/damselfly-heady.png</image>
</screenshot>
<screenshot>
<image>http://goldendict.org/screenshots/completar-chaining.png</image>
</screenshot>
<screenshot>
<image>http://goldendict.org/screenshots/lingvo.png</image>
</screenshot>
<screenshot>
<image>http://goldendict.org/screenshots/wordnet.png</image>
</screenshot>
</screenshots>
<url type="homepage">http://goldendict.org</url>
<update_contact>https://github.com/goldendict/goldendict</update_contact>
<launchable type="desktop-id">org.goldendict.GoldenDict.desktop</launchable>
<content_rating type="oars-1.0" />
<provides>
<id>org.goldendict.desktop</id>
</provides>
</component>

View file

@ -2,9 +2,13 @@
Type=Application
Terminal=false
Categories=Office;Dictionary;Education;Qt;
Name=GoldenDict
Name=GoldenDict-NG
GenericName=Multiformat Dictionary
GenericName[zh_CN]=
Comment=A feature-rich dictionary lookup program
Comment[zh_CN]=
Keywords=dict;dictioanry;
Keywords[zh_CN]=dict;dictioanry;;
Icon=goldendict
Exec=goldendict %u
MimeType=x-scheme-handler/goldendict;x-scheme-handler/dict;

View file

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2019 Vitaly Zaitsev <vitaly@easycoding.org> -->
<component type="desktop">
<id>org.xiaoyifang.GoldenDict_NG</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<name>GoldenDict-NG</name>
<summary>Dictionary lookup program</summary>
<description>
<p>
GoldenDict-NG is a feature-rich dictionary lookup program, supporting multiple
dictionary formats, featuring perfect article rendering with the complete
markup, illustrations and other content retained, and allowing you to type
in words without any accents or correct case.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://xiaoyifang.github.io/goldendict-ng/img/linux_genshin.webp</image>
</screenshot>
<screenshot>
<image>https://xiaoyifang.github.io/goldendict-ng/img/mac_black.webp</image>
</screenshot>
<screenshot>
<image>https://xiaoyifang.github.io/goldendict-ng/img/windows_white.webp</image>
</screenshot>
</screenshots>
<url type="homepage">https://github.com/xiaoyifang/goldendict-ng</url>
<update_contact>https://github.com/xiaoyifang/goldendict-ng</update_contact>
<launchable type="desktop-id">org.xiaoyifang.GoldenDict_NG.desktop</launchable>
<content_rating type="oars-1.0" />
<provides>
<id>org.goldendict_ng.desktop</id>
</provides>
</component>

View file

@ -3215,7 +3215,7 @@ void MainWindow::setAutostart(bool autostart)
return; // Nothing to do.
if( autostart )
{
const QString sourcePath = Config::getProgramDataDir() + "../applications/org.goldendict.GoldenDict.desktop";
const QString sourcePath = Config::getProgramDataDir() + "../applications/org.xiaoyifang.GoldenDict_NG.desktop";
QFile::copy( sourcePath, destinationPath );
}
else