Add snapcraft build (#3216)

https://docs.snapcraft.io/build-snaps/electron
This commit is contained in:
Pablo Varela 2018-10-13 16:50:20 +02:00 committed by CHaBou
parent d1846ffd80
commit 932384f0b4
2 changed files with 5 additions and 0 deletions

View file

@ -24,6 +24,7 @@ addons:
- snapd
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo snap install snapcraft --classic; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi
cache: yarn

View file

@ -147,6 +147,10 @@
{
"target": "rpm",
"arch": ["x64"]
},
{
"target": "snap",
"arch": ["x64"]
}
]
},