Merge pull request #2479 from slightlyskepticalpotat/snap-improvements
snap packaging for 1.14.5
This commit is contained in:
commit
7a83a2363f
|
@ -4,15 +4,21 @@ All the commands I used for building and pushing to Snapcraft. I've only tested
|
|||
|
||||
## Building Locally
|
||||
|
||||
```
|
||||
sudo apt install snapd
|
||||
sudo snap install --classic snapcraft
|
||||
snapcraft
|
||||
```
|
||||
|
||||
### To Install Locally
|
||||
```
|
||||
snap install \*.snap --devmode
|
||||
```
|
||||
|
||||
### To Push to Snapcraft
|
||||
```
|
||||
snapcraft login
|
||||
snapcraft register dogecoin-core
|
||||
snapcraft push \*.snap --release=edge
|
||||
sudo snap install dogecoin-core --channel=edge
|
||||
```
|
|
@ -1,5 +1,5 @@
|
|||
name: dogecoin-core # you probably want to 'snapcraft register <name>'
|
||||
version: '1.14.4'
|
||||
version: '1.14.5'
|
||||
summary: Reference client of Dogecoin, a peer-to-peer digital currency like Bitcoin.
|
||||
description: |
|
||||
Dogecoin is a cryptocurrency like Bitcoin, although it does not use SHA256 as its proof of work (POW). Taking development cues from Tenebrix and Litecoin, Dogecoin currently employs a simplified variant of scrypt. MIT licenced.
|
||||
|
@ -39,19 +39,26 @@ parts:
|
|||
unzip master.zip
|
||||
echo "Verifying secure hash matches signed values..."
|
||||
checksum=$(sha256sum dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz)
|
||||
if ! grep -r $checksum *; then
|
||||
if ! (grep -r $checksum * | grep dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz); then
|
||||
echo "Secure hash not verified."
|
||||
return
|
||||
else
|
||||
echo "Secure hash verified."
|
||||
fi
|
||||
tar -xvf dogecoin-${SNAPCRAFT_PROJECT_VERSION}-${SNAPCRAFT_ARCH_TRIPLET}.tar.gz
|
||||
echo "Running tests..."
|
||||
dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/test_dogecoin
|
||||
if ! (dogecoin-${SNAPCRAFT_PROJECT_VERSION}/bin/test_dogecoin); then
|
||||
echo "Dogecoin tests failed."
|
||||
return
|
||||
else
|
||||
echo "Dogecoin tests passed."
|
||||
fi
|
||||
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 0644 -D -t $SNAPCRAFT_PART_INSTALL/share/pixmaps bitcoin128.png
|
||||
wget https://raw.githubusercontent.com/dogecoin/dogecoin/master/share/pixmaps/dogecoin128.png
|
||||
install -m 0644 -D -t $SNAPCRAFT_PART_INSTALL/share/pixmaps dogecoin128.png
|
||||
build-packages:
|
||||
- unzip
|
||||
- wget
|
||||
|
|
Loading…
Reference in a new issue