1
0
Fork 0
This repository has been archived on 2024-03-23. You can view files and clone it, but cannot push or open issues or pull requests.
citra-multiplayer-dedicated/.ci/fetch.sh

13 lines
440 B
Bash
Raw Normal View History

2023-08-06 14:49:37 +00:00
#!/bin/bash -ex
if [ -z "$1" ]; then
echo "Please specify where to extract the source archive!"
exit 1
fi
LATEST_TARBALL="$(wget -O- https://api.github.com/repos/citra-emu/citra-nightly/releases/latest | jq -rc '.assets[] | .browser_download_url | match("https://.+citra-unified-source-.+.xz$") | .string')"
wget -c "${LATEST_TARBALL}" -O citra-unified.tar.xz
mkdir -pv "$1"
tar --strip-components=1 -C "$1" -xf citra-unified.tar.xz