snapcraft push stable

This commit is contained in:
Denis S. Soldatov aka General-Beck 2018-02-01 16:17:40 +03:00
parent b322af35bc
commit c697e40e84
No known key found for this signature in database
GPG Key ID: 3E5771903C3EE2DE
3 changed files with 18 additions and 9 deletions

View File

@ -270,18 +270,17 @@ case $BUILD_PLATFORM in
push_release push_release
;; ;;
x86_64-unknown-snap-gnu) x86_64-unknown-snap-gnu)
cd snap
ARC="amd64" ARC="amd64"
EXT="snap" EXT="snap"
rm -rf *.snap snapcraft clean
rm -rf *snap echo "Prepare snapcraft.yaml for build on Gitlab CI in Docker image"
sed -i 's/git/'"$VER"'/g' snapcraft.yaml sed -i 's/git/'"$VER"'/g' snap/snapcraft.yaml
sed -i -e 's/source: ./source: ../' snapcraft.yaml
if [[ "$CI_BUILD_REF_NAME" = "stable" ]]; if [[ "$CI_BUILD_REF_NAME" = "stable" ]];
then then
sed -i -e 's/grade: devel/grade: stable/' snapcraft.yaml; sed -i -e 's/grade: devel/grade: stable/' snap/snapcraft.yaml;
fi fi
snapcraft mv -f snap/snapcraft.yaml snapcraft.yaml
snapcraft -d
snapcraft_login=$(expect -c " snapcraft_login=$(expect -c "
spawn snapcraft login spawn snapcraft login
expect \"Email:\" expect \"Email:\"

View File

@ -4,5 +4,5 @@ Encoding=UTF-8
Name=parity Name=parity
Comment=Fast, light, robust Ethereum implementation Comment=Fast, light, robust Ethereum implementation
Exec=parity Exec=parity
Icon=${SNAP}/meta/gui/icon.png Icon=/usr/share/pixmaps/icon.png
Terminal=true Terminal=true

View File

@ -13,10 +13,20 @@ confinement: strict
apps: apps:
parity: parity:
command: parity command: parity
plugs: [network, network-bind, mount-observe, x11, unity7] plugs: [home, network, network-bind, mount-observe, x11, unity7, desktop, desktop-legacy, wayland]
desktop: usr/share/applications/parity.desktop
icon: snap/gui/icon.png
parts: parts:
desktop-icon:
source: ./snap
plugin: nil
prepare: |
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/applications
mkdir -p $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps
cp -v gui/parity.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications/
cp -v gui/icon.png $SNAPCRAFT_PART_INSTALL/usr/share/pixmaps/
parity: parity:
source: . source: .
plugin: rust plugin: rust