From 7e769406abb4dffb2ec7044508a553406710a48c Mon Sep 17 00:00:00 2001 From: Nils <31704359+mietzen@users.noreply.github.com> Date: Thu, 2 Jan 2025 08:35:52 +0100 Subject: [PATCH 1/2] Update docker cross compile guide for librespot 0.6.0 upgrade - Enhanced log output - Use latest GH Release - Corrected compose filename --- docs/src/installation/cross-compile-using-docker.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/src/installation/cross-compile-using-docker.md b/docs/src/installation/cross-compile-using-docker.md index 97277648..08de1233 100644 --- a/docs/src/installation/cross-compile-using-docker.md +++ b/docs/src/installation/cross-compile-using-docker.md @@ -13,22 +13,26 @@ We can also use `docker` to cross compile on every platform and OS that runs `do If you are **not** using Docker-Desktop you might have to install [QEMU](https://docs.docker.com/build/building/multi-platform/#install-qemu-manually) -2. Create a docker `compose-file.yml` +2. Create a docker `docker-compose.yml` Here we are building a `arm64` binary, so we set `platform: linux/arm64` ```yaml services: build-container: - image: rust:1.79-bookworm + image: rust:1.81-bookworm platform: linux/arm64 command: bash -c " apt-get update && apt-get install -y \ libasound2-dev \ libssl-dev \ + jq \ pkg-config && - curl -sSL https://api.github.com/repos/Spotifyd/spotifyd/tarball/v0.3.5 | tar xz -C /spotifyd --strip-components=1 && + wget -O - https://api.github.com/repos/Spotifyd/spotifyd/tarball/$(\ + curl -SsL https://api.github.com/repos/Spotifyd/spotifyd/releases/latest \ + | jq '.tag_name' -r) \ + | tar xzv -C /spotifyd --strip-components=1 && cargo build --release && cp /spotifyd/target/release/spotifyd /build/" working_dir: /spotifyd From 97cbe10eb62bc98f9a3ba33df6585fc134a460b2 Mon Sep 17 00:00:00 2001 From: Nils <31704359+mietzen@users.noreply.github.com> Date: Thu, 2 Jan 2025 09:44:45 +0100 Subject: [PATCH 2/2] use latest rust 1 image --- docs/src/installation/cross-compile-using-docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/installation/cross-compile-using-docker.md b/docs/src/installation/cross-compile-using-docker.md index 08de1233..53d480f8 100644 --- a/docs/src/installation/cross-compile-using-docker.md +++ b/docs/src/installation/cross-compile-using-docker.md @@ -20,7 +20,7 @@ We can also use `docker` to cross compile on every platform and OS that runs `do ```yaml services: build-container: - image: rust:1.81-bookworm + image: rust:1-bookworm platform: linux/arm64 command: bash -c " apt-get update &&