-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 1.48 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
language: node_js
sudo: true
before_install:
- sudo apt-get update -qq
install:
- |
sudo apt-get install fuse appstream appstream-util
before_script:
- wget https://github.com/probonopd/linuxdeployqt/releases/download/7/linuxdeployqt-7-x86_64.AppImage; mv linuxdeployqt* linuxdeployqt; chmod +x linuxdeployqt
- wget https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.45.1/0.45.1-linux-x64.zip
- wget https://github.com/atom/atom/releases/download/v1.52.0/atom-amd64.tar.gz
# unpacking
- tar xzf atom-amd64.tar.gz
- mv atom-1.52.0-amd64 atom
- unzip 0.45.1-linux-x64.zip
script:
- BUILD_SRC=$(pwd)
- mkdir -p AppDir/usr/local
- APPDIR="${BUILD_SRC}/AppDir"
- mv atom "${APPDIR}/usr/local/atom"
- mkdir -p "${APPDIR}/usr/share/pixmaps"
- cp "${APPDIR}/usr/local/atom/atom.png" "${APPDIR}"
- mkdir -p "${APPDIR}/usr/share/applications"
- cp atom.desktop "${APPDIR}/usr/share/applications"
- mkdir -p "${APPDIR}/usr/share/metainfo"
- cp io.atom.appdata.xml "${APPDIR}/usr/share/metainfo"
- cp libffmpeg.so "${APPDIR}/usr/libffmpeg.so"
- mkdir -p "${APPDIR}/usr/bin"
- cd "${APPDIR}/usr/bin"
- ln -s ../local/atom/atom atom
- cd "${BUILD_SRC}"
- find "${APPDIR}"
- export ARCH=x86_64
- |
./linuxdeployqt "${APPDIR}/usr/share/applications/atom.desktop" \
-updateinformation="gh-releases-zsync|zilti|Atom.AppImage|continuous|Atom-*.AppImage.zsync" \
-appimage
after_success:
- wget https://github.com/probonopd/uploadtool/raw/master/upload.sh; chmod +x upload.sh
- bash upload.sh ./*.AppImage*