Commit a54e0ce 1 parent 3bf0879 commit a54e0ce Copy full SHA for a54e0ce
File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,26 @@ We can also use `docker` to cross compile on every platform and OS that runs `do
13
13
14
14
If you are ** not** using Docker-Desktop you might have to install [QEMU](https://docs.docker.com/build/building/multi-platform/# install-qemu-manually)
15
15
16
- 2. Create a docker ` compose-file .yml`
16
+ 2. Create a docker ` docker-compose .yml`
17
17
18
18
Here we are building a ` arm64` binary, so we set ` platform: linux/arm64`
19
19
20
20
` ` ` yaml
21
21
services:
22
22
build-container:
23
- image: rust:1.79 -bookworm
23
+ image: rust:1-bookworm
24
24
platform: linux/arm64
25
25
command: bash -c "
26
26
apt-get update &&
27
27
apt-get install -y \
28
28
libasound2-dev \
29
29
libssl-dev \
30
+ jq \
30
31
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 &&
32
36
cargo build --release &&
33
37
cp /spotifyd/target/release/spotifyd /build/"
34
38
working_dir: /spotifyd
You can’t perform that action at this time.
0 commit comments