-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (47 loc) · 2.16 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
language: node_js
sudo: true
script:
- |
sudo apt-get install git nodejs binutils fuse appstream-util libatomic1 libc++1 libx11-6 \
libxtst6 libasound2 libgtk2.0-0 libxss1 libnspr4 libnss3 chromium-codecs-ffmpeg-extra
- nvm install v12.14.0
- nvm use v12.14.0
- 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
- gpg --import ~/appsign.asc
- cd ..
- curl https://dl.discordapp.net/apps/linux/0.0.9/discord-0.0.9.tar.gz | tar xzvf -
- mkdir AppDir
- BUILD_HOME="$(pwd)"
- BUILD_APPDIR="${BUILD_HOME}/AppDir"
- mkdir -p "${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps"
- mkdir -p "${BUILD_APPDIR}/usr/share/metainfo"
- mkdir -p "${BUILD_APPDIR}/usr/bin"
- cp -r Discord "${BUILD_APPDIR}/usr/share/discord"
- chmod +x "${BUILD_APPDIR}/usr/share/discord/Discord"
- cp discord.desktop "${BUILD_APPDIR}"
- cp discord.svg "${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps"
- cp com.discordapp.appdata.xml "${BUILD_APPDIR}/usr/share/metainfo"
- chmod +x AppRun
- export SIGN=1
- export ARCH=x86_64
- export UPDATE_INFORMATION="gh-releases-zsync|zilti|discord.AppImage|continuous|Discord-*.AppImage.zsync"
- export LD_LIBRARY_PATH="/usr/lib/chromium-browser"
- export LIBRARY_PATH="/usr/lib/chromium-browser"
- |
bin/linuxdeploy \
--appdir="${BUILD_APPDIR}" \
--desktop-file="${BUILD_APPDIR}/discord.desktop" \
--icon-file="${BUILD_APPDIR}/usr/share/icons/hicolor/scalable/apps/discord.svg" \
--library=/usr/lib/chromium-browser/libffmpeg.so \
--executable="${BUILD_APPDIR}/usr/share/discord/Discord" \
--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_e49b548a1d94_key -iv $encrypted_e49b548a1d94_iv
-in appsign.asc.enc -out ~/appsign.asc -d