fix snapcraft build (stable) (#7763)

* fix snapcraft build for stable

* fix snapcraft build (stable)
This commit is contained in:
Denis S. Soldatov aka General-Beck 2018-01-31 18:35:13 +03:00 committed by GitHub
parent 31ef44d718
commit 1ede2fbed2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 2 deletions

View File

@ -274,7 +274,8 @@ case $BUILD_PLATFORM in
ARC="amd64" ARC="amd64"
EXT="snap" EXT="snap"
rm -rf *snap rm -rf *snap
sed -i 's/master/'"$VER"'/g' snapcraft.yaml sed -i 's/git/'"$VER"'/g' snapcraft.yaml
sed -i -e 's/source: ./source: ../' snapcraft.yaml
snapcraft snapcraft
cp "parity_"$CI_BUILD_REF_NAME"_amd64.snap" "parity_"$VER"_amd64.snap" cp "parity_"$CI_BUILD_REF_NAME"_amd64.snap" "parity_"$VER"_amd64.snap"
md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5" md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"

BIN
snap/gui/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

8
snap/gui/parity.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=parity
Comment=Fast, light, robust Ethereum implementation
Exec=parity
Icon=${SNAP}/meta/gui/icon.png
Terminal=true

View File

@ -13,10 +13,16 @@ confinement: strict
apps: apps:
parity: parity:
command: parity command: parity
plugs: [network, network-bind] plugs: [network, network-bind, mount-observe, x11, unity7]
parts: parts:
parity: parity:
source: . source: .
plugin: rust plugin: rust
build-attributes: [no-system-libraries]
build-packages: [g++, libudev-dev, libssl-dev, make, pkg-config] build-packages: [g++, libudev-dev, libssl-dev, make, pkg-config]
stage-packages: [libc6, libssl1.0.0, libudev1, libstdc++6]
df:
plugin: nil
stage-packages: [coreutils]
stage: [bin/df]