File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,15 @@ const repo = "PaiGramTeam/GetToken"
8
8
const token = process . env . GHP_TOKEN
9
9
10
10
const getAppVersion = async ( ) => {
11
- const latestVersionRsp = await axios . get ( "https://api-takumi.mihoyo .com/ptolemaios /api/getLatestRelease" , {
11
+ const latestVersionRsp = await axios . get ( "https://api-takumi.miyoushe .com/ptolemaios_api /api/getLatestRelease" , {
12
12
headers : {
13
13
"x-rpc-client_type" : "2" ,
14
- "x-rpc-app_version" : "2.37.1" ,
15
- "x-rpc-channel" : "miyousheluodi"
14
+ "x-rpc-app_version" : "2.67.1" ,
15
+ "x-rpc-channel" : "miyousheluodi" ,
16
+ "x-rpc-h265_supported" : "1" ,
17
+ "referer" : "https://app.mihoyo.com" ,
18
+ "x-rpc-verify_key" : "bll8iq97cem8" ,
19
+ "user-agent" : "okhttp/4.9.3"
16
20
}
17
21
} )
18
22
return latestVersionRsp . data . data
Original file line number Diff line number Diff line change 29
29
- name : Install jq
30
30
run : sudo apt-get install -y jq
31
31
- name : Download package
32
- run : " curl -H 'x-rpc-client_type: 2' -H 'x-rpc-app_version: 2.52.1' -H 'x-rpc-channel: miyousheluodi' https://api-takumi.mihoyo.com/ptolemaios/api/getLatestRelease | jq --raw-output '.data.package_url' | xargs curl -o miyoushe.apk"
32
+ run : |
33
+ chmod +x download.sh
34
+ ./download.sh
33
35
- name : Patch package
34
36
run : " mkdir out && mv app/build/outputs/apk/release/app-release.apk . && java -jar gradle/lspatch/jar-v0.5.1-361-release.jar -f -l 2 -m app-release.apk -o out miyoushe.apk && mv app-release.apk out"
35
37
- name : Upload build artifacts
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # shellcheck disable=SC2154
4
+ 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" ) "
5
+ url=" $( echo " $jsonData " | jq --raw-output ' .data.package_url' ) "
6
+ curl -o mihoyobbs.apk " $url "
You can’t perform that action at this time.
0 commit comments