Skip to content

Commit

Permalink
#443: Add initial snapcraft configuration
Browse files Browse the repository at this point in the history
The resulting snap requires to connect USB manually with:
```
sudo snap connect cfclient:raw-usb
```
  • Loading branch information
ataffanel committed Sep 13, 2020
1 parent 52341cf commit 3c1699d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ src/cfclient/third_party/*
version.json
win32install/*.exe
win32install/cfclient.nsi
*.snap

# PC client settings
conf/*
Expand Down
5 changes: 5 additions & 0 deletions snap/gui/cfclient.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Desktop Entry]
Name=Crazyflie client
Exec=cfclient
Icon=${SNAP}/meta/gui/cfclient.png
Type=Application
Binary file added snap/gui/cfclient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: cfclient
version: git
summary: Crazyflie client
description: |
Crazyflie client
base: core18
confinement: strict
icon: snap/gui/cfclient.png


parts:
cfclient:
plugin: python
python-version: python3
source: .
stage-packages:
- python3-pyqt5

apps:
cfclient:
command: python3 -m cfclient.gui
extensions:
- kde-neon
plugs:
- home
- opengl
- network
- network-bind
- raw-usb

0 comments on commit 3c1699d

Please sign in to comment.