Skip to content

Commit

Permalink
fix: snapcraft build
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Dec 27, 2023
1 parent 2ed24e8 commit ac19d6a
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ac19d6a

Please sign in to comment.