Skip to content

Commit

Permalink
Update qqnt.json
Browse files Browse the repository at this point in the history
add persist QQ-Files
  • Loading branch information
cheng1nuo authored Sep 26, 2024
1 parent d900bb6 commit 0790a62
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions bucket/qqnt.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,32 @@
"hash": "0f472dd8e466951095c3e8debef484628d7ba72c439d62368c04bce1610049b0"
}
},
"extract_dir": "Files",
"installer": {
"script": [
"$configpath = \"$env:PUBLIC\\Documents\\Tencent\\QQ\"",
"if (!(Test-Path \"$configpath\")) {",
" New-Item -Path \"$configpath\" -Type Directory -Force | Out-Null",
"}",
"Set-Content -NoNewline -Path \"$configpath\\UserDataInfo.ini\" -Value \"[UserDataSet]`nUserDataSavePathType=2`nUserDataSavePath=$persist_dir\\QQ-Files\"",
"# handle runtime cache",
"ensure \"$persist_dir\\appdata\" | Out-Null",
"New-Item \"$env:APPDATA\\QQ\" -ItemType Junction -Target \"$persist_dir\\appdata\" | Out-Null"
]
},
"shortcuts": [
[
"QQ.exe",
"Files\\QQ.exe",
"QQ"
]
],
"persist": "QQ-Files",
"uninstaller": {
"script": [
"Remove-Item -Path \"$env:PUBLIC\\Documents\\Tencent\" -Recurse -Force | Out-Null",
"#remove handle runtime cache",
"Remove-Item \"$env:APPDATA\\QQ\" -Recurse -Force -ErrorAction 'SilentlyContinue'"
]
},
"checkver": {
"script": [
"$url = 'https://im.qq.com/pcqq/index.shtml'",
Expand Down

0 comments on commit 0790a62

Please sign in to comment.