chore: delete snap configuration
galargh committed
Oct 18, 2022 at 17:17 UTC
5482d4b0da7b4746e56851a3f5a93afe3a478cbf
1 file changed
-44
snap/snapcraft.yaml
deleted
-44
@@ -1,44 +0,0 @@
1
-# This snap will build kubo from source.
2
-name: ipfs
3
-summary: global, versioned, peer-to-peer filesystem # 79 char long summary
4
-description: |
5
- IPFS combines good ideas from Git, BitTorrent, Kademlia, SFS, and the Web.
6
- It is like a single bittorrent swarm, exchanging git objects. IPFS provides
7
- an interface as simple as the HTTP web, but with permanence built in. You
8
- can also mount the world at /ipfs.
9
-
10
-# fetch the version number in the `ipfs` part rather than hardcode it here
11
-# see: https://snapcraft.io/docs/using-external-metadata#heading--scriptlet
12
-adopt-info: ipfs
13
-base: core18
14
-grade: stable
15
-confinement: strict
16
-
17
-apps:
18
- ipfs:
19
- command: ipfs
20
- # the home plug is included so the user can `ipfs add` files from their home dir without a permission error.
21
- plugs: [home, network, network-bind, removable-media]
22
- environment:
23
- # Snaps versions are isolated by default. This keeps the same ipfs repo across upgrades.
24
- IPFS_PATH: "$SNAP_USER_COMMON"
25
-
26
-parts:
27
- ipfs:
28
- source: '.'
29
- source-tag: master
30
- plugin: go
31
- # keep me up to date with the go version that kubo expects to be built with.
32
- go-channel: 1.19/stable
33
- go-importpath: github.com/ipfs/kubo
34
- build-packages:
35
- - build-essential
36
-
37
- # use `make` to build and set the snap version from `ipfs version` output
38
- override-build: |
39
- export GOPATH=$SNAPCRAFT_PART_BUILD/go
40
- make install
41
- cp $SNAPCRAFT_PART_BUILD/go/bin/ipfs $SNAPCRAFT_PART_INSTALL
42
- export IPFS_VERSION=$($SNAPCRAFT_PART_BUILD/go/bin/ipfs version --commit | cut -c 14-)
43
- echo "found version $IPFS_VERSION"
44
- snapcraftctl set-version $IPFS_VERSION