From 853d40711578727443baf88f36832f9fb716f079 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Tue, 17 Dec 2024 22:37:06 -0500 Subject: [PATCH] snapcraft --- snapcraft.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 8a62976c23..3ede1712ef 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -105,16 +105,27 @@ parts: #echo "1" #echo $PWD #find .. -type f -name librecad + echo "current folder" + pwd + ls + pushd .. + echo "parent folder" + pwd + ls + popd export SRC_DIR=../parts/librecad/build/ echo $CRAFT_STAGE mkdir -p $CRAFT_STAGE/usr/bin - mkdir -p $CRAFT_STAGE/usr/share/librecad + mkdir -p $CRAFT_STAGE/usr/share/librecad/resources/qm mkdir -p $CRAFT_STAGE/usr/share/applications mkdir -p usr/bin mkdir -p usr/share/librecad cp -a $SRC_DIR/librecad $CRAFT_STAGE/usr/bin/ #cp -a $SRC_DIR/ttf2lff $CRAFT_STAGE/usr/bin/ - cp -a $SRC_DIR/../src/unix/resources/* $CRAFT_STAGE/usr/share/librecad/ + + + cp -a $SRC_DIR/*.qm $CRAFT_STAGE/usr/share/librecad/qm + rsync -vut ../project/librecad/support/* $CRAFT_STAGE/usr/share/librecad/ export DESKTOP_DIR=../parts/librecad/src/desktop cp -a $DESKTOP_DIR/*.desktop $CRAFT_STAGE/usr/share/applications/org.librecad.librecad.desktop cp -a $DESKTOP_DIR/org.librecad.*.xml $CRAFT_STAGE/usr/share/applications/org.librecad.librecad.xml