Skip to content

Commit

Permalink
✨ feat(wechat-versions.json):
Browse files Browse the repository at this point in the history
add manifests file
  • Loading branch information
RecursiveMaple committed Feb 8, 2024
1 parent 6a2a570 commit 3837ddd
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions bucket/wechat-versions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"version": "not-spicified",
"description": "all versions of wechat archived by github@tom-snow, type 'scoop install wechat@version' to install a specific version",
"homepage": "https://pc.weixin.qq.com/",
"license": {
"identifier": "Proprietary",
"url": "https://www.wechat.com/en/service_terms.html"
},
"url": "https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.9.9.35/WeChatSetup-3.9.9.35.exe#/dl.7z",

"installer": {
"script": [
"Remove-Item \"$dir\\`$*\", \"$dir\\Uninst*\" -Force -Recurse",
"$configpath = \"$env:APPDATA\\Tencent\\WeChat\\All Users\\config\"",
"ensure \"$configpath\" | Out-Null",
"Set-Content -NoNewline -Path \"$configpath\\3ebffe94.ini\" -Value \"$persist_dir\"",
"$regpath = \"HKCU:Software\\Tencent\\WeChat\"",
"if (!(Test-Path \"$regpath\")) {",
" New-Item -Path \"$regpath\" -Type Directory -Force | Out-Null",
"}",
"New-ItemProperty -Path $regpath -Name \"FileSavePath\" -Value \"$persist_dir\" -Force | Out-Null"
]
},
"shortcuts": [
[
"wechat.exe",
"WeChat"
]
],
"uninstaller": {
"script": [
"Remove-Item -Path \"$env:APPDATA\\Tencent\\WeChat\\All Users\\config\\3ebffe94.ini\" -Force | Out-Null",
"Remove-ItemProperty -Path \"HKCU:Software\\Tencent\\WeChat\" -Name \"FileSavePath\" -Force | Out-Null"
]
},
"persist": [
"WeChat Files"
],
"checkver": {
"url": "https://github.com/tom-snow/wechat-windows-versions",
"regex": "Wechat v([\\d.]+)"
},
"autoupdate": {
"url": "https://github.com/tom-snow/wechat-windows-versions/releases/download/v$version/WeChatSetup-$version.exe#/dl.7z"
}
}

0 comments on commit 3837ddd

Please sign in to comment.