Skip to content

Commit 0790a62

Browse files
authored
Update qqnt.json
add persist QQ-Files
1 parent d900bb6 commit 0790a62

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

Diff for: bucket/qqnt.json

+21-2
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,32 @@
1313
"hash": "0f472dd8e466951095c3e8debef484628d7ba72c439d62368c04bce1610049b0"
1414
}
1515
},
16-
"extract_dir": "Files",
16+
"installer": {
17+
"script": [
18+
"$configpath = \"$env:PUBLIC\\Documents\\Tencent\\QQ\"",
19+
"if (!(Test-Path \"$configpath\")) {",
20+
" New-Item -Path \"$configpath\" -Type Directory -Force | Out-Null",
21+
"}",
22+
"Set-Content -NoNewline -Path \"$configpath\\UserDataInfo.ini\" -Value \"[UserDataSet]`nUserDataSavePathType=2`nUserDataSavePath=$persist_dir\\QQ-Files\"",
23+
"# handle runtime cache",
24+
"ensure \"$persist_dir\\appdata\" | Out-Null",
25+
"New-Item \"$env:APPDATA\\QQ\" -ItemType Junction -Target \"$persist_dir\\appdata\" | Out-Null"
26+
]
27+
},
1728
"shortcuts": [
1829
[
19-
"QQ.exe",
30+
"Files\\QQ.exe",
2031
"QQ"
2132
]
2233
],
34+
"persist": "QQ-Files",
35+
"uninstaller": {
36+
"script": [
37+
"Remove-Item -Path \"$env:PUBLIC\\Documents\\Tencent\" -Recurse -Force | Out-Null",
38+
"#remove handle runtime cache",
39+
"Remove-Item \"$env:APPDATA\\QQ\" -Recurse -Force -ErrorAction 'SilentlyContinue'"
40+
]
41+
},
2342
"checkver": {
2443
"script": [
2544
"$url = 'https://im.qq.com/pcqq/index.shtml'",

0 commit comments

Comments
 (0)