mirror of
https://github.com/CDrummond/bliss-analyser.git
synced 2026-10-22 22:32:08 +03:00
23 lines
529 B
Bash
Executable File
23 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
## #!/usr/bin/env bash
|
|
set -eux
|
|
|
|
uname -a
|
|
DESTDIR=/src/releases
|
|
|
|
function build {
|
|
echo Building for $1 to $3...
|
|
|
|
if [[ ! -f /build/$1/release/bliss-analyser ]]; then
|
|
cargo build --release --features=update-aubio-bindings,libav,staticlibav --target $1
|
|
fi
|
|
|
|
$2 /build/$1/release/bliss-analyser && cp /build/$1/release/bliss-analyser $DESTDIR/$3
|
|
}
|
|
|
|
build x86_64-unknown-linux-musl strip bliss-analyser
|
|
|
|
cp UserGuide.md $DESTDIR/README.md
|
|
cp LICENSE $DESTDIR/
|
|
cp configs/linux.ini $DESTDIR/config.ini
|