Permalink
Browse files

fixed getting static binaries

  • Loading branch information...
lafin committed Jun 7, 2017
1 parent 3f428a7 commit fb6e3b5b2ee61cc5e06e6fa74ca1074717a46299
Showing with 8 additions and 9 deletions.
  1. +4 −4 .travis.yml
  2. +3 −4 publish.sh
  3. +1 −1 update.sh
View
@@ -3,15 +3,15 @@ services: docker
language: bash
env:
global:
- VERSION=2.9.0
- VERSION=2.9.1
- REPO=multiarch/qemu-user-static
branches:
only:
- master
before_script:
- sudo apt-get install jq
- wget --content-disposition https://www.archlinux.org/packages/extra/x86_64/qemu-arch-extra/download/
- mkdir pkg && tar -xJvf qemu-arch-extra-2.9.0-1-x86_64.pkg.tar.xz -C ./pkg
- sudo apt-get install jq rpm2cpio cpio
- wget --content-disposition https://kojipkgs.fedoraproject.org/packages/qemu/2.9.0/1.fc27/x86_64/qemu-user-static-2.9.0-1.fc27.x86_64.rpm
- sudo rpm2cpio qemu-user-static-2.9.0-1.fc27.x86_64.rpm | cpio -dimv
script:
- sudo ./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO"
- sudo ./update.sh -v "$VERSION" -r "$REPO"
View
@@ -18,14 +18,13 @@ shift $((OPTIND-1))
[ "$1" = "--" ] && shift
cd ./pkg/usr/bin/
rm -rf releases
mkdir releases
find . -regex './qemu-.*' -not -regex './qemu-system-.*' -exec cp {} releases \;
cp ./usr/bin/qemu-*-static releases/
cd releases/
for file in *; do
tar -czf $file-static.tar.gz $file;
cp $file-static.tar.gz x86_64_$file-static.tar.gz
tar -czf $file.tar.gz $file;
cp $file.tar.gz x86_64_$file.tar.gz
done
# create a release
View
@@ -24,7 +24,7 @@ shift $((OPTIND-1))
[ "$1" = "--" ] && shift
from_arch="x86_64"
to_archs=("aarch64" "alpha" "arm" "armeb" "cris" "hppa" "i386" "m68k" "microblaze" "microblazeel" "mips" "mips64" "mips64el" "mipsel" "mipsn32" "mipsn32el" "nios2" "or1k" "ppc" "ppc64" "ppc64abi32" "ppc64le" "s390x" "sh4" "sh4eb" "sparc" "sparc32plus" "sparc64" "tilegx" "x86_64")
to_archs=("aarch64" "alpha" "arm" "armeb" "cris" "hppa" "i386" "m68k" "microblaze" "microblazeel" "mips" "mips64" "mips64el" "mipsel" "mipsn32" "mipsn32el" "nios2" "or1k" "ppc" "ppc64" "ppc64abi32" "ppc64le" "s390x" "sh4" "sh4eb" "sparc" "sparc32plus" "sparc64" "x86_64")
for to_arch in "${to_archs[@]}"; do
if [ "$from_arch" != "$to_arch" ]; then

0 comments on commit fb6e3b5

Please sign in to comment.