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 753c8d2 commit 8eaf8f8
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
29 changes: 28 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ keyring = "^23.13.1"
openai-whisper = "v20231106"
platformdirs = "^3.5.3"
dataclasses-json = "^0.5.9"
ffmpeg-python = "0.2.0"

[tool.poetry.group.dev.dependencies]
autopep8 = "^1.7.0"
Expand Down
8 changes: 4 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ parts:
poetry install
poetry build
tar xvzf dist/*.tar.gz -C $CRAFT_PART_INSTALL/buzz/ --strip-components=1
ls -la $CRAFT_PART_BUILD/buzz/
#
# tar xvzf dist/*.tar.gz -C $CRAFT_PART_INSTALL --strip-components=1
# ls -la $CRAFT_PART_BUILD/buzz/
after: [ desktop-qt5 ]

desktop-file:
Expand All @@ -112,7 +112,7 @@ parts:

apps:
buzz:
command: bin/desktop-launch python $SNAP/main.py
command: bin/desktop-launch python3 $SNAP/main.py
desktop: usr/share/applications/buzz.desktop
environment:
PATH: $SNAP/usr/bin:$SNAP/bin:$PATH
Expand Down

0 comments on commit 8eaf8f8

Please sign in to comment.