mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-03 12:32:33 +12:00
Slightly improve creation scripts for packages
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
cf77cc7604
commit
6fb040d12c
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue