From f68a879b89a930c772b9eba18dce9a0dfaa415f8 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 28 Jun 2024 16:30:12 +0200 Subject: [PATCH] update build --- assets/ffplayout.service | 2 +- ffplayout/Cargo.toml | 2 +- scripts/build.sh | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/assets/ffplayout.service b/assets/ffplayout.service index 55ca4aaf..6a9d2fe0 100644 --- a/assets/ffplayout.service +++ b/assets/ffplayout.service @@ -3,7 +3,7 @@ Description=Rust and ffmpeg based playout solution After=network.target remote-fs.target [Service] -ExecStart=/usr/bin/ffplayout +ExecStart=/usr/bin/ffplayout -l 0.0.0.0:8787 Restart=always StartLimitInterval=20 RestartSec=1 diff --git a/ffplayout/Cargo.toml b/ffplayout/Cargo.toml index 46398be9..1e0bfc9c 100644 --- a/ffplayout/Cargo.toml +++ b/ffplayout/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ffplayout" description = "24/7 playout based on rust and ffmpeg" -readme = "README.md" +readme = "../README.md" version.workspace = true license.workspace = true authors.workspace = true diff --git a/scripts/build.sh b/scripts/build.sh index efa50454..fca0ee7d 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -44,9 +44,7 @@ for target in "${targets[@]}"; do cross build --release --target=$target - cp ./target/${target}/release/ffplayout . - tar -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' --exclude='*.db-shm' --exclude='*.db-wal' assets docker docs LICENSE README.md CHANGELOG.md ffplayout - rm -f ffplayout + tar --transform 's/.*\///g' -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' --exclude='*.db-shm' --exclude='*.db-wal' assets docker docs LICENSE README.md CHANGELOG.md ./target/${target}/release/ffplayout fi echo ""