Skip to content

Commit a54e0ce

Browse files
authored
docs: update docker cross compile guide for librespot 0.6.0 upgrade
* 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
1 parent 3bf0879 commit a54e0ce

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/src/installation/cross-compile-using-docker.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,26 @@ We can also use `docker` to cross compile on every platform and OS that runs `do
1313

1414
If you are **not** using Docker-Desktop you might have to install [QEMU](https://docs.docker.com/build/building/multi-platform/#install-qemu-manually)
1515

16-
2. Create a docker `compose-file.yml`
16+
2. Create a docker `docker-compose.yml`
1717

1818
Here we are building a `arm64` binary, so we set `platform: linux/arm64`
1919

2020
```yaml
2121
services:
2222
build-container:
23-
image: rust:1.79-bookworm
23+
image: rust:1-bookworm
2424
platform: linux/arm64
2525
command: bash -c "
2626
apt-get update &&
2727
apt-get install -y \
2828
libasound2-dev \
2929
libssl-dev \
30+
jq \
3031
pkg-config &&
31-
curl -sSL https://api.github.com/repos/Spotifyd/spotifyd/tarball/v0.3.5 | tar xz -C /spotifyd --strip-components=1 &&
32+
wget -O - https://api.github.com/repos/Spotifyd/spotifyd/tarball/$(\
33+
curl -SsL https://api.github.com/repos/Spotifyd/spotifyd/releases/latest \
34+
| jq '.tag_name' -r) \
35+
| tar xzv -C /spotifyd --strip-components=1 &&
3236
cargo build --release &&
3337
cp /spotifyd/target/release/spotifyd /build/"
3438
working_dir: /spotifyd

0 commit comments

Comments
 (0)