From ac19d6a902e647785b0344850eda748dec77d017 Mon Sep 17 00:00:00 2001 From: Chidi Williams Date: Wed, 27 Dec 2023 23:31:15 +0000 Subject: [PATCH] fix: snapcraft build --- snap/snapcraft.yaml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 1cb95b874..7c5b96159 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -90,24 +90,9 @@ parts: override-build: | craftctl default pip install . - echo $CRAFT_PART_BUILD - echo $CRAFT_PART_INSTALL - which poetry - # export PATH="/root/.local/bin:$PATH" - # - # # Install dependencies - # pip3 install --upgrade pip wheel - # - # curl -sSL https://install.python-poetry.org | python3 - - # - # # Install all Poetry dependencies globally - # poetry config virtualenvs.create false - # poetry install - # - # # Copy python deps to $CRAFT_PART_INSTALL - # mkdir -p $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages - # cp -r $CRAFT_PART_BUILD/usr/lib/python3.10/site-packages/* $CRAFT_PART_INSTALL/usr/lib/python3/dist-packages - + mkdir $CRAFT_PART_INSTALL/buzz + cp $CRAFT_PART_BUILD/buzz/whisper_cpp.py $CRAFT_PART_INSTALL/buzz/ + cp $CRAFT_PART_BUILD/buzz/libwhisper.so $CRAFT_PART_INSTALL/buzz/ after: [ desktop-qt5 ] desktop-file: