Renamed freedesktop resources

This commit is contained in:
redtide 2021-08-31 14:45:00 +02:00 committed by Francesco Abbate
parent 604626fa32
commit a75aca2538
5 changed files with 12 additions and 7 deletions

View File

@ -167,8 +167,8 @@ lite_build_package_linux () {
strip "$bindir/lite-xl" strip "$bindir/lite-xl"
if [ -z "$portable" ]; then if [ -z "$portable" ]; then
mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps" "$pdir/share/metainfo" mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps" "$pdir/share/metainfo"
cp "resources/linux/org.lite-xl.lite-xl.desktop" "$pdir/share/applications" cp "resources/linux/org.lite_xl.lite_xl.desktop" "$pdir/share/applications"
cp "resources/linux/org.lite-xl.lite-xl.appdata.xml" "$pdir/share/metainfo" cp "resources/linux/org.lite_xl.lite_xl.appdata.xml" "$pdir/share/metainfo"
cp "resources/icons/lite-xl.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg" cp "resources/icons/lite-xl.svg" "$pdir/share/icons/hicolor/scalable/apps/lite-xl.svg"
fi fi
pushd ".package-build" pushd ".package-build"

View File

@ -92,10 +92,10 @@ else
install_data('resources/icons/lite-xl.svg', install_data('resources/icons/lite-xl.svg',
install_dir : 'share/icons/hicolor/scalable/apps' install_dir : 'share/icons/hicolor/scalable/apps'
) )
install_data('resources/linux/org.lite-xl.lite-xl.desktop', install_data('resources/linux/org.lite_xl.lite_xl.desktop',
install_dir : 'share/applications' install_dir : 'share/applications'
) )
install_data('resources/linux/org.lite-xl.lite-xl.appdata.xml', install_data('resources/linux/org.lite_xl.lite_xl.appdata.xml',
install_dir : 'share/metainfo' install_dir : 'share/metainfo'
) )
endif endif

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<component type="desktop"> <component type="desktop">
<id>org.lite-xl.lite-xl</id> <id>org.lite_xl.lite_xl</id>
<metadata_license>MIT</metadata_license> <metadata_license>MIT</metadata_license>
<project_license>MIT</project_license> <project_license>MIT</project_license>
<name>Lite XL</name> <name>Lite XL</name>
<summary>A lightweight text editor written in Lua</summary> <summary>A lightweight text editor written in Lua</summary>
<content_rating type="oars-1.0" />
<description> <description>
<p> <p>
@ -25,4 +26,8 @@
<provides> <provides>
<binary>lite-xl</binary> <binary>lite-xl</binary>
</provides> </provides>
<releases>
<release version="2.0.1" date="2021-08-28" />
</releases>
</component> </component>

View File

@ -6,5 +6,5 @@ Exec=lite-xl %F
Icon=lite-xl Icon=lite-xl
Terminal=false Terminal=false
StartupNotify=false StartupNotify=false
Categories=Utility;TextEditor;Development; Categories=Development;IDE;
MimeType=text/plain; MimeType=text/plain;

View File

@ -117,7 +117,7 @@ generate_appimage(){
mv AppRun LiteXL.AppDir/ mv AppRun LiteXL.AppDir/
# These could be symlinks but it seems they doesn't work with AppimageLauncher # These could be symlinks but it seems they doesn't work with AppimageLauncher
cp resources/icons/lite-xl.svg LiteXL.AppDir/ cp resources/icons/lite-xl.svg LiteXL.AppDir/
cp resources/linux/org.lite-xl.lite-xl.desktop LiteXL.AppDir/ cp resources/linux/org.lite_xl.lite_xl.desktop LiteXL.AppDir/
if [[ $STATIC_BUILD == false ]]; then if [[ $STATIC_BUILD == false ]]; then
echo "Copying libraries..." echo "Copying libraries..."