minetest-mapserver: fix download of binary
This commit is contained in:
parent
4bc7e9b370
commit
c54852d143
1 changed files with 6 additions and 3 deletions
|
@ -1,9 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# The architecture - possible values: arm (default), x86, x86_64
|
||||
arch="${arch:-arm}";
|
||||
# arch="${arch:-arm}";
|
||||
|
||||
download_url="https://github.com/minetest-mapserver/mapserver/releases/latest/download/mapserver-linux-${arch}";
|
||||
|
||||
# download_url="https://github.com/minetest-mapserver/mapserver/releases/latest/download/mapserver-linux-${arch}";
|
||||
download_url="$(curl -sSL https://api.github.com/repos/minetest-mapserver/mapserver/releases/58437588/assets | jq --raw-output '.[] | select(.browser_download_url | contains("_armv")) | .url' | head -n1)";
|
||||
|
||||
# The registry to push to
|
||||
DOCKER_REGISTRY="${DOCKER_REGISTRY:-registry.service.mooncarrot.space:5000/}";
|
||||
|
@ -39,7 +41,8 @@ log_msg() {
|
|||
|
||||
|
||||
log_msg "Downloading mapserver";
|
||||
curl -sSL -o "${temp_dir}/mapserver" "${download_url}"
|
||||
curl -sSL -o "${temp_dir}/mapserver.tar.gz" "${download_url}";
|
||||
tar -xf "${temp_dir}/mapserver.tar.gz" -C "${temp_dir}";
|
||||
|
||||
chmod +x "${temp_dir}/mapserver";
|
||||
|
||||
|
|
Loading…
Reference in a new issue