12 # sleep so as not to overwrite during uploading (FIXME)
17 # clean up and download data from GitHub
18 rm -rf data.
tar.g
* .gnu
* || true
19 wget https
://github.com
/AppImage
/AppImageKit
/files
/584665/data.
zip -O data.
tar.gz.gpg
20 ( set +x
; echo $KEY | gpg2
--batch --passphrase-fd 0 --no-tty --skip-verify --output data.
tar.gz
--decrypt data.
tar.gz.gpg
) || true
21 ( tar xf data.
tar.gz
; sudo chown
-R $USER .gnu
* ; rm -rf $HOME/.gnu
* ; mv .gnu
* $HOME/ ) || true
23 # prepare output directory
28 --device /dev
/fuse
:mrw \
29 -e ARCH
-e TRAVIS
-e TRAVIS_BUILD_NUMBER \
31 -v "${PWD}":/AppImageKit \
32 -v "${PWD}"/travis
/:/travis \
34 /bin
/bash
-x "/travis/build-binaries.sh" --run-tests
37 find build
/out
/appimagetool.AppDir
/
38 find build
/out
/appimaged.AppDir
/
43 --device /dev
/fuse
:mrw \
44 -e ARCH
-e TRAVIS
-e TRAVIS_BUILD_NUMBER \
46 -v "${PWD}":/AppImageKit \
47 -v "${PWD}"/travis
/:/travis \
48 -v $HOME/.gnupg
:/root
/.gnupg \
50 /bin
/bash
-x "/travis/build-packages-and-appimages.sh"
55 [ "$ARCH" == "i686" ] && sudo apt-get update
&& sudo apt-get
install -y gcc-multilib lib32z1 libfuse2 libfuse2
:i386 libglib2.0
-0:i386 libcairo2
:i386
56 bash
-x ..
/travis
/test-appimages.sh
59 # (vim-common contains xxd)
60 sudo apt-get
install vim-common
63 sudo chown
-R travis.travis .
65 # remove binaries from output directory
67 rm -r out
/{appimaged
,appimagetool
,validate
,digest
,mksquashfs
,*.AppDir
}
70 xxd out
/runtime |
head -n 1
71 # fix filename for upload
72 mv out
/runtime out
/runtime-
"$ARCH"
75 sudo
rm -rf out
/*.AppDir out
/*.AppImage.digest
77 # fix filename for upload
78 sudo
mv out
/AppRun out
/AppRun-
"$ARCH"