You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
397 B
15 lines
397 B
#!/bin/bash |
|
|
|
set -euxo pipefail |
|
|
|
CITRA_CHANNEL=$1 |
|
CITRA_RELEASE=$2 |
|
|
|
RELEASE_API="https://api.github.com/repos/citra-emu/citra-${CITRA_CHANNEL}/releases/tags/${CITRA_CHANNEL}-${CITRA_RELEASE}" |
|
|
|
curl "${RELEASE_API}" | |
|
jq --raw-output '.assets[].browser_download_url' | |
|
grep -E 'citra-linux-.*.tar.xz' | |
|
xargs wget -O citra-linux.tar.xz |
|
|
|
tar --strip-components 1 -xvf citra-linux.tar.xz
|
|
|