Skip to content

Commit

Permalink
fixed getting static binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
lafin committed Jun 7, 2017
1 parent 3f428a7 commit 6a8c3ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 3 additions & 4 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a8c3ee

Please sign in to comment.