/
steamcommunity-302.json
54 lines (54 loc) · 2.53 KB
/
steamcommunity-302.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"version": "12.1.39",
"description": "Reverse proxy tool to access Steam Community in mainland China.",
"homepage": "https://www.dogfight360.com/blog/686/",
"license": "Freeware",
"url": "https://www.dogfight360.com/blog/wp-content/uploads/2024/04/steamcommunity_302_V12.1.39_%E8%A7%A3%E5%8E%8B%E5%AF%86%E7%A0%81dogfight360.zip#/dl",
"hash": "06de7e635b14e824e8dfec3be25207e3ddaf3592c67915f17e8920f551b845d4",
"installer": {
"script": [
"7z x \"$dir/dl\" -o\"$dir\" -pdogfight360",
"Get-ChildItem \"$dir\\steamcommunity_302*\" -Directory | ?{$_.psiscontainer -eq $true} | Get-ChildItem | Move-Item -Destination \"$dir\"",
"if (Test-Path \"$dir\\steamcommunity_302\") {",
" Get-ChildItem \"$dir\\steamcommunity_302\" | Move-Item -Destination \"$dir\"",
"}",
"Get-ChildItem \"$dir\\steamcommunity_302_V*.exe\" | Rename-Item -NewName \"steamcommunity_302.exe\"",
"Get-ChildItem \"$dir\\steamcommunity_302*\" -Directory | ?{$_.psiscontainer -eq $true} | Remove-Item",
"Remove-Item \"$dir/dl\""
]
},
"pre_install": [
"If ( -not (Test-Path \"$persist_dir\\S302.ini\")) {",
" New-Item -ItemType File -Path \"$dir\\S302.ini\" -Force",
"}"
],
"post_install": [
"'steamcommunity_302.caddy.json', 'S302.xml', 'steamcommunity.crt', 'steamcommunity.key', 'steamcommunity.csr', 'steamcommunityCA.key', 'steamcommunityCA.pem' | ForEach-Object {",
" If (Test-Path \"$persist_dir\\$_\") {",
" Move-Item -Path \"$persist_dir\\$_\" -Destination \"$dir\" -Force",
" }",
"}"
],
"pre_uninstall": [
"'steamcommunity_302.caddy.json', 'S302.ini','S302.xml', 'steamcommunity.crt', 'steamcommunity.key', 'steamcommunity.csr', 'steamcommunityCA.key', 'steamcommunityCA.pem' | ForEach-Object {",
" If (Test-Path \"$dir\\$_\") {",
" Write-Host \"Moving $_ back to $persist_dir\"",
" Move-Item -Path \"$dir\\$_\" -Destination \"$persist_dir\" -Force",
" }",
"}"
],
"persist": "S302.ini",
"shortcuts": [
[
"steamcommunity_302.exe",
"SteamCommunity 302"
]
],
"depends": "main/7zip",
"checkver": {
"regex": "uploads/(?<date>[\\d/]+)/steamcommunity_302_V([\\d.]+)"
},
"autoupdate": {
"url": "https://www.dogfight360.com/blog/wp-content/uploads/$matchDate/steamcommunity_302_V$version_%E8%A7%A3%E5%8E%8B%E5%AF%86%E7%A0%81dogfight360.zip#/dl"
}
}