aboutsummaryrefslogtreecommitdiff
path: root/contrib/snap
diff options
context:
space:
mode:
authorTomo Ueda <[email protected]>2021-09-02 12:54:43 -0700
committerTomo Ueda <[email protected]>2021-09-02 12:54:43 -0700
commitf5c716526aaafb318a98e974c8b2fbe02870646b (patch)
treee14145656fcff86ec2c7a1ecf4ad28e0b40f36aa /contrib/snap
parents/DOGE/DIS/g (diff)
downloaddiscoin-f5c716526aaafb318a98e974c8b2fbe02870646b.tar.xz
discoin-f5c716526aaafb318a98e974c8b2fbe02870646b.zip
really s/doge/dis/g this time
Diffstat (limited to 'contrib/snap')
-rw-r--r--contrib/snap/README.md4
-rw-r--r--contrib/snap/snapcraft.yaml30
2 files changed, 17 insertions, 17 deletions
diff --git a/contrib/snap/README.md b/contrib/snap/README.md
index 39dfdb725..0aa4b4a17 100644
--- a/contrib/snap/README.md
+++ b/contrib/snap/README.md
@@ -13,6 +13,6 @@ snap install \*.snap --devmode
### To Push to Snapcraft
snapcraft login
-snapcraft register dogecoin-core
+snapcraft register discoin-core
snapcraft push \*.snap --release=edge
-sudo snap install dogecoin-core --channel=edge
+sudo snap install discoin-core --channel=edge
diff --git a/contrib/snap/snapcraft.yaml b/contrib/snap/snapcraft.yaml
index ad357b142..79cf69ccb 100644
--- a/contrib/snap/snapcraft.yaml
+++ b/contrib/snap/snapcraft.yaml
@@ -1,4 +1,4 @@
-name: dogecoin-core # you probably want to 'snapcraft register <name>'
+name: discoin-core # you probably want to 'snapcraft register <name>'
version: '1.14.4'
summary: Reference client of Dogecoin, a peer-to-peer digital currency like Bitcoin.
description: |
@@ -12,45 +12,45 @@ architectures:
apps:
d:
- command: dogecoind
+ command: discoind
plugs: [home, removable-media, network, network-bind]
environment:
- # Override HOME so the datadir is located at ~/snap/dogecoin-core/common/.dogecoin/ instead of ~/snap/dogecoin-core/current/.dogecoin/, and each new version of the snap won't have a different data directory: https://docs.snapcraft.io/environment-variables/7983
+ # Override HOME so the datadir is located at ~/snap/discoin-core/common/.discoin/ instead of ~/snap/discoin-core/current/.discoin/, and each new version of the snap won't have a different data directory: https://docs.snapcraft.io/environment-variables/7983
HOME: $SNAP_USER_COMMON
qt:
- command: qt4-launch dogecoin-qt
+ command: qt4-launch discoin-qt
plugs: [home, removable-media, network, network-bind, desktop, x11, unity7]
environment:
HOME: $SNAP_USER_COMMON
DISABLE_WAYLAND: 1
cli:
- command: dogecoin-cli
+ command: discoin-cli
plugs: [home, removable-media, network]
environment:
HOME: $SNAP_USER_COMMON
parts:
- dogecoin-core:
+ discoin-core:
plugin: nil
override-build: |
echo "Downloading files..."
- wget https://github.com/dogecoin/dogecoin/releases/download/v${SNAPCRAFT_PROJECT_VERSION}/dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
- wget https://github.com/dogecoin/gitian.sigs/archive/refs/heads/master.zip
+ wget https://github.com/discoin/discoin/releases/download/v${SNAPCRAFT_PROJECT_VERSION}/discoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
+ wget https://github.com/discoin/gitian.sigs/archive/refs/heads/master.zip
unzip master.zip
echo "Verifying secure hash matches signed values..."
- checksum=$(sha256sum dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz)
+ checksum=$(sha256sum discoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz)
if ! grep -r $checksum *; then
echo "Secure hash not verified."
return
fi
- tar -xvf dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
+ tar -xvf discoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
echo "Running tests..."
- dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/test_dogecoin
+ discoin-${SNAPCRAFT_PROJECT_VERSION}/bin/test_discoin
echo "Installing Dogecoin..."
- install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/dogecoind
- install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/dogecoin-qt
- install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/dogecoin-cli
- wget https://raw.githubusercontent.com/dogecoin/dogecoin/v${SNAPCRAFT_PROJECT_VERSION}/share/pixmaps/bitcoin128.png
+ install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin discoin-${SNAPCRAFT_PROJECT_VERSION}/bin/discoind
+ install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin discoin-${SNAPCRAFT_PROJECT_VERSION}/bin/discoin-qt
+ install -m 0755 -D -t $SNAPCRAFT_PART_INSTALL/bin discoin-${SNAPCRAFT_PROJECT_VERSION}/bin/discoin-cli
+ wget https://raw.githubusercontent.com/discoin/discoin/v${SNAPCRAFT_PROJECT_VERSION}/share/pixmaps/bitcoin128.png
install -m 0644 -D -t $SNAPCRAFT_PART_INSTALL/share/pixmaps bitcoin128.png
build-packages:
- unzip