From 026cd103c2db979bc69af31fb56d6763dde87ba6 Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Thu, 6 May 2021 15:36:11 -0700 Subject: [PATCH 1/2] add snapcraft --- Makefile | 4 ++++ snap/snapcraft.yaml | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/Makefile b/Makefile index 1ccce11ed3a..430efe72fd7 100644 --- a/Makefile +++ b/Makefile @@ -371,6 +371,10 @@ gen: type-gen method-gen docsgen api-gen @echo ">>> IF YOU'VE MODIFIED THE CLI, REMEMBER TO ALSO MAKE docsgen-cli" .PHONY: gen +snap: lotus lotus-miner lotus-worker + snapcraft + # snapcraft upload ./lotus_*.snap + # separate from gen because it needs binaries docsgen-cli: lotus lotus-miner lotus-worker python ./scripts/generate-lotus-cli.py diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000000..69522e5d351 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,27 @@ +name: lotus +base: core20 +version: '1.8.0' +summary: filecoin daemon/client +description: | + Filecoin is a peer-to-peer network that stores files on the internet + with built-in economic incentives to ensure files are stored reliably over time +grade: devel +confinement: devmode # use 'strict' once you have the right plugs and slots + +parts: + libs: + plugin: dump + source: ./ + organize: + 'lotus' : bin/ + 'lotus-*' : bin/ + stage-packages: + - ocl-icd-libopencl1 + - libhwloc15 +apps: + lotus: + command: bin/lotus + lotus-miner: + command: bin/lotus-miner + lotus-worker: + command: bin/lotus-worker From 838369229c4e2117b2bdc1a2d651f2b18bc7aeaf Mon Sep 17 00:00:00 2001 From: Cory Schwartz Date: Thu, 6 May 2021 16:28:27 -0700 Subject: [PATCH 2/2] downgrade to core18 --- snap/snapcraft.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 69522e5d351..7cdc1746d3b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,5 @@ name: lotus -base: core20 +base: core18 version: '1.8.0' summary: filecoin daemon/client description: | @@ -17,7 +17,8 @@ parts: 'lotus-*' : bin/ stage-packages: - ocl-icd-libopencl1 - - libhwloc15 + - libhwloc1 + - libgcc1 apps: lotus: command: bin/lotus