GetToken/download.sh

12 lines
613 B
Bash
Raw Normal View History

#!/bin/bash
# shellcheck disable=SC2154
jsonData="$(curl -X GET "https://api-takumi.miyoushe.com/ptolemaios_api/api/getLatestRelease" -H "x-rpc-client_type: 2" -H "x-rpc-app_version: 2.67.1" -H "x-rpc-channel: miyousheluodi" -H "x-rpc-h265_supported: 1" -H "referer: https://app.mihoyo.com" -H "x-rpc-verify_key: bll8iq97cem8" -H "x-rpc-csm_source: " -H "user-agent: okhttp/4.9.3")"
url="$(echo "$jsonData" | jq --raw-output '.data.package_url')"
curl -o miyoushe.apk "$url"
2024-05-29 08:16:41 +00:00
# hoyolab
wget --user-agent='Mozilla/5.0' \
-O hoyolab.apk \
https://d.apkpure.com/b/APK/com.mihoyo.hoyolab?version=latest