Skip to content

Commit

Permalink
snapcraft
Browse files Browse the repository at this point in the history
  • Loading branch information
dxli committed Dec 18, 2024
1 parent d818a13 commit 853d407
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 853d407

Please sign in to comment.