snapcraft push stable
This commit is contained in:
parent
b322af35bc
commit
c697e40e84
@ -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:\"
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user