Added missing resource files in build-packages.sh

This commit is contained in:
redtide 2021-08-17 23:58:19 +02:00
parent b6af395fc7
commit dd7c345fd9
1 changed files with 7 additions and 2 deletions

View File

@ -130,12 +130,15 @@ lite_build_package_linux () {
if [ "$portable" == "-portable" ]; then if [ "$portable" == "-portable" ]; then
local bindir="$pdir" local bindir="$pdir"
local datadir="$pdir/data" local datadir="$pdir/data"
local docdir="$pdir/doc"
else else
local bindir="$pdir/bin" local bindir="$pdir/bin"
local datadir="$pdir/share/lite-xl" local datadir="$pdir/share/lite-xl"
local docdir="$pdir/share/doc/lite-xl"
fi fi
mkdir -p "$bindir" mkdir -p "$bindir"
mkdir -p "$datadir" mkdir -p "$datadir"
mkdir -p "$docdir"
for module_name in core plugins colors fonts; do for module_name in core plugins colors fonts; do
copy_directory_from_repo --strip-components=1 "data/$module_name" "$datadir" copy_directory_from_repo --strip-components=1 "data/$module_name" "$datadir"
done done
@ -145,10 +148,12 @@ lite_build_package_linux () {
cp -r "$build/third/data/$module_name" "$datadir" cp -r "$build/third/data/$module_name" "$datadir"
done done
cp "$build/src/lite-xl" "$bindir" cp "$build/src/lite-xl" "$bindir"
cp "licenses/licenses.md" "$docdir"
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" mkdir -p "$pdir/share/applications" "$pdir/share/icons/hicolor/scalable/apps" "$pdir/share/metainfo"
cp "resources/linux/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/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"