From 6fc69d8c66cdebc58640d74ee87dd991082fec1a Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Thu, 15 Jun 2017 03:19:48 +0000 Subject: [PATCH 1/4] Add the packaging metadata to build the electrum snap --- snap/snapcraft.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 000000000000..b9a594ffe351 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,21 @@ +name: electrum +version: master +summary: Bitcoin thin client +description: | + Lightweight Bitcoin client + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: strict + +apps: + electrum: + command: desktop-launch electrum + plugs: [network, network-bind] + +parts: + electrum: + source: . + plugin: python + python-version: python2 + stage-packages: [python-qt4] + after: [desktop-qt4] From 0a2f571ca5aec283796f4d5ac90d40879eb007bf Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Thu, 15 Jun 2017 19:04:09 +0000 Subject: [PATCH 2/4] generate the icons --- snap/snapcraft.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index b9a594ffe351..ddf544c4f768 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -16,6 +16,8 @@ parts: electrum: source: . plugin: python - python-version: python2 + python-version: python stage-packages: [python-qt4] + build-packages: [pyqt4-dev-tools] + install: pyrcc4 icons.qrc -o $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/electrum_gui/qt/icons_rc.py after: [desktop-qt4] From b5f78a578488758d11244a0b063434a1f350f0a5 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Thu, 15 Jun 2017 19:04:30 +0000 Subject: [PATCH 3/4] add the UI plugs --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ddf544c4f768..08a761b9e140 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -10,7 +10,7 @@ confinement: strict apps: electrum: command: desktop-launch electrum - plugs: [network, network-bind] + plugs: [network, network-bind, x11, unity7] parts: electrum: From 29747c93d9cde1976ca576a7390bdb30558e45f7 Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Thu, 15 Jun 2017 19:12:46 +0000 Subject: [PATCH 4/4] fix typo on the python version --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 08a761b9e140..ee648003121f 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -16,7 +16,7 @@ parts: electrum: source: . plugin: python - python-version: python + python-version: python2 stage-packages: [python-qt4] build-packages: [pyqt4-dev-tools] install: pyrcc4 icons.qrc -o $SNAPCRAFT_PART_INSTALL/lib/python2.7/site-packages/electrum_gui/qt/icons_rc.py