-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (49 loc) · 2.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: node_js
sudo: true
script:
- sudo apt-get install git nodejs binutils fuse appstream-util
- nvm install v12.16.1
- nvm use v12.16.1
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- mkdir bin; cd bin
- curl -L https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -o appimagetool; chmod +x appimagetool
- curl -L https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -o linuxdeploy; chmod +x linuxdeploy
- cd ..
- git clone https://github.com/vector-im/riot-web.git
- cd riot-web
- git checkout v1.6.1
- cp config.sample.json config.json
- yarn install
- yarn build:electron:linux
- cd ..
- mkdir AppDir
- BUILD_HOME="$(pwd)"
- BUILD_APPDIR="${BUILD_HOME}/AppDir"
- mkdir -p "${BUILD_APPDIR}/usr/share"
- mv riot-web/electron_app/dist/linux-unpacked "${BUILD_APPDIR}/usr/share/riot-im"
- curl 'https://about.riot.im/images/riot-nav.svg' -o riot-nav.svg
- gpg --import ~/appsign.asc
- mkdir -p "${BUILD_APPDIR}/usr/share/metainfo"
- mkdir -p "${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps"
- mkdir -p "${BUILD_APPDIR}/usr/share/applications"
- cp riot-nav.svg "${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps/riot-web.svg"
- cp im.vector.riot-web.appdata.xml "${BUILD_APPDIR}/usr/share/metainfo"
- cp riot-web.desktop "${BUILD_APPDIR}/usr/share/applications"
- chmod +x AppRun
- export SIGN=1
- export ARCH=x86_64
- export UPDATE_INFORMATION="gh-releases-zsync|zilti|riot-web.AppImage|continuous|Riot-*.AppImage.zsync"
- |
bin/linuxdeploy \
--appdir=${BUILD_APPDIR} \
--desktop-file=${BUILD_APPDIR}/usr/share/applications/riot-web.desktop \
--icon-file=${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps/riot-web.svg \
--executable=${BUILD_APPDIR}/usr/share/riot-im/riot-web \
--output=appimage \
--custom-apprun=AppRun
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh ./*.AppImage*
before_install:
- openssl aes-256-cbc -K $encrypted_9cbf37fcefab_key -iv $encrypted_9cbf37fcefab_iv
-in appsign.asc.enc -out ~/appsign.asc -d