From 3c1699dbbfb128f2756b84205746cae04e479c2a Mon Sep 17 00:00:00 2001 From: Arnaud Taffanel Date: Sun, 13 Sep 2020 22:24:17 +0200 Subject: [PATCH] #443: Add initial snapcraft configuration The resulting snap requires to connect USB manually with: ``` sudo snap connect cfclient:raw-usb ``` --- .gitignore | 1 + snap/gui/cfclient.desktop | 5 +++++ snap/gui/cfclient.png | Bin 0 -> 6554 bytes snap/snapcraft.yaml | 29 +++++++++++++++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 snap/gui/cfclient.desktop create mode 100644 snap/gui/cfclient.png create mode 100644 snap/snapcraft.yaml diff --git a/.gitignore b/.gitignore index 132ac685..ad41c066 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ src/cfclient/third_party/* version.json win32install/*.exe win32install/cfclient.nsi +*.snap # PC client settings conf/* diff --git a/snap/gui/cfclient.desktop b/snap/gui/cfclient.desktop new file mode 100644 index 00000000..900a0868 --- /dev/null +++ b/snap/gui/cfclient.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Name=Crazyflie client +Exec=cfclient +Icon=${SNAP}/meta/gui/cfclient.png +Type=Application \ No newline at end of file diff --git a/snap/gui/cfclient.png b/snap/gui/cfclient.png new file mode 100644 index 0000000000000000000000000000000000000000..e4e19efa91336b6af657724aa1673186852771be GIT binary patch literal 6554 zcmc(Ei$Bxv`~PcWjG@Unr=jGKQ-p?$2y;k|DTg_qa-I+|sZh>mWl;@@a?ByekYi1u zC};AXIfO`ai0^BCe*eR7kH;SOcD=4$_jO;_^E%y2G&eI~XFb6R006s@p`HZ*K){a> z0L}z1_Q5Yaz=bhH*T@PEzM|l63E+2@KtsC_0D!)yzafcVW7a{U0ABwp-ZH=gALbnF z4upk;$$R_zhPXNhy2}Rydp`cDc>?6&Gt$$s3NKijiVU~dkg_FPWg)ZT2&H)hxHubkCB6B}y#FkY7h_zrx4`DeH2b5X+Y-Cj zX;yQv`2E+;(XDc)C`*W9oXt(!+u5;#ki3ds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0U{4L?8q)^Gdb8^|9-fVUda4QyvT9Gav;X!se3#hg%u|lr>0!>lSYvYxY`)_CaiIWc2w)Vuc2kLtq1;(0vPF=>Alv) G-T6PS>Jy^? literal 0 HcmV?d00001 diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..70b6a903 --- /dev/null +++ b/snap/snapcraft.yaml @@ -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