Slightly improve creation scripts for packages

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2022-09-16 15:42:33 +02:00
parent cf77cc7604
commit 6fb040d12c
No known key found for this signature in database
GPG key ID: D850A5F772E880F9
2 changed files with 14 additions and 4 deletions

View file

@ -36,7 +36,13 @@ echo " [✓]"
# Using the current direction as source
echo -n "Copying manuskript content"
rsync -a --exclude=.git --include="*.msk" --exclude-from="$Root/.gitignore" \
rsync -a --exclude=.git \
--exclude=dist \
--exclude=rpmbuild \
--exclude=snap \
--exclude=package \
--include="*.msk" \
--exclude-from="$Root/.gitignore" \
"$ScriptPath/../" "$Dest/usr/share/manuskript"
cp "$ScriptPath/create_deb/manuskript" "$Dest/usr/bin/manuskript"
cp "$ScriptPath/create_deb/manuskript.desktop" \
@ -57,7 +63,7 @@ sudo chown root:root -R "$Dest"
# Use xz compression to make sure Debian can handle it!
echo "Creating the package…"
dpkg -b -Zxz "$Dest"
dpkg-deb -b -Zxz "$Dest"
echo -n "Removing build folder"
sudo rm -r "$Dest"

View file

@ -55,10 +55,14 @@ echo "### Creating tarball folder structure"
echo_do eval "mkdir -p $Dest/$AppName-$AppVersion/{usr/share/applications,usr/bin/}"
echo "### Copying manuskript content"
echo_do eval "rsync -a --exclude=.git --include='*.msk' \
echo_do eval "rsync -a --exclude=.git \
--include='*.msk' \
--exclude=.github \
--exclude-from='$Root/.gitignore' \
--exclude-from='$Root/.gitignore' \
--exclude=rpmbuild \
--exclude=dist \
--exclude=snap \
--exclude=package \
--exclude={.codeclimate.yml,.gitignore,.travis.yml} \
$ScriptPath/../ $Dest/$AppName-$AppVersion/usr/share/manuskript"
# Note: Files manuskript and manuskript.desktop are same as in Debian