Commit 4ddfb8f2 authored by L. E. Segovia's avatar L. E. Segovia

AppImage: allow incremental rebuild of steps 0 and 2

Before this commit, it was needed to manually delete krita.appdir
previous to a local AppImage rebuild. This was because steps 0 and 2
in build-image.sh attempt to move the respective directories.
This commit rsyncs and deletes the directories instead.
parent bb103a10
...@@ -53,7 +53,8 @@ cd $BUILD_PREFIX ...@@ -53,7 +53,8 @@ cd $BUILD_PREFIX
# Step 0: place the translations where ki18n and Qt look for them # Step 0: place the translations where ki18n and Qt look for them
if [ -d $APPDIR/usr/share/locale ] ; then if [ -d $APPDIR/usr/share/locale ] ; then
mv $APPDIR/usr/share/locale $APPDIR/usr/share/krita rsync -prul $APPDIR/usr/share/locale/ $APPDIR/usr/share/krita/
rm -rf $APPDIR/usr/share/locale
fi fi
# Step 1: Copy over all the resources provided by dependencies that we need # Step 1: Copy over all the resources provided by dependencies that we need
...@@ -66,7 +67,7 @@ cp -r $DEPS_INSTALL_PREFIX/translations $APPDIR/usr/ ...@@ -66,7 +67,7 @@ cp -r $DEPS_INSTALL_PREFIX/translations $APPDIR/usr/
# Step 2: Relocate binaries from the architecture specific directory as required for Appimages # Step 2: Relocate binaries from the architecture specific directory as required for Appimages
if [[ -d "$APPDIR/usr/lib/$TRIPLET" ]] ; then if [[ -d "$APPDIR/usr/lib/$TRIPLET" ]] ; then
mv $APPDIR/usr/lib/$TRIPLET/* $APPDIR/usr/lib rsync -prul $APPDIR/usr/lib/$TRIPLET/ $APPDIR/usr/lib/
rm -rf $APPDIR/usr/lib/$TRIPLET/ rm -rf $APPDIR/usr/lib/$TRIPLET/
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment