mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-14 18:24:27 -04:00
Package & distribute frontend bundle when doing releases for Linux (#2500)
* Package & distribute frontend bundle when doing releases for Linux * Only check for tar.xz frontend bundle * debug * Fix sd-desktop
This commit is contained in:
committed by
GitHub
parent
6b465008a1
commit
ae06459eea
@@ -89,6 +89,17 @@ tar -xzf "${_tmp}/control.tar.gz" -C "${_tmp}/control"
|
||||
# Fix files owner
|
||||
chown -R root:root "$_tmp"
|
||||
|
||||
# Rename sd-desktop to spacedrive
|
||||
find "${_tmp}" -name 'sd-desktop' -o \( -type f -name 'sd-desktop.*' \) | while IFS= read -r file
|
||||
do
|
||||
filename="$(basename "$file")"
|
||||
if [ "$filename" = "sd-desktop" ]; then
|
||||
mv "$file" "$(dirname "$file")/spacedrive"
|
||||
else
|
||||
mv "$file" "$(dirname "$file")/spacedrive.${filename#*.}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Create doc directory
|
||||
mkdir -p "$_tmp"/data/usr/share/{doc/spacedrive,man/man1}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user