Skip to content

Commit

Permalink
docs: update docker cross compile guide for librespot 0.6.0 upgrade
Browse files Browse the repository at this point in the history
* Update docker cross compile guide for librespot 0.6.0 upgrade

- Enhanced log output
- Use latest GH Release
- Corrected compose filename

* use latest rust 1 image
  • Loading branch information
mietzen authored Jan 2, 2025
1 parent 3bf0879 commit a54e0ce
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/src/installation/cross-compile-using-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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-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
Expand Down

0 comments on commit a54e0ce

Please sign in to comment.