generated from Ash258/GenericBucket
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathUAC.ThunderX.json
51 lines (51 loc) · 2.24 KB
/
UAC.ThunderX.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
{
"version": "10.1.10.348",
"description": "迅雷X为您带来“更快的下载速度、更高的下载成功率、更低的资源占用、更高效流畅的下载交互体验”",
"homepage": "https://github.com/Paxxs/GreenderX",
"url": "https://list.nb.gl/OD_scoop/apt-cdn/ThunderX/10.1.10.348/GreenderX_Portable.zip",
"hash" : "sha1:cab94dbdfa4ed0dbe9898eb37831f0098497672b",
"persist": "profiles",
"shortcuts": [
[
"Program/Thunder.exe",
"迅雷"
]
],
"pre_install":[
"$file = 'profiles'",
"if (!(Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" New-Item -Path $dir\\$file -ItemType Directory",
"}"
],
"installer": {
"script":[
"If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \"Administrator\")){",
" abort \"ERROR: installer require UAC. Please try again.\"",
"}",
"$script_cmd = \"$dir\\Install.bat\"",
"if (Test-Path $script_cmd) {",
" Start-Process -FilePath $script_cmd -WorkingDirectory $dir -Wait -Verb RunAs",
"}else {",
" error \"Can't found '$script_cmd', This application may not be installed correctly.\"",
"}"
]
},
"uninstaller": {
"script":[
"If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \"Administrator\")){",
" abort \"ERROR: uninstaller require UAC. Please try again.\"",
"}",
"$script_cmd = \"$dir\\Uninstall.bat\"",
"if (Test-Path $script_cmd) {",
" Start-Process -FilePath $script_cmd -WorkingDirectory $dir -Wait -Verb RunAs",
"}else {",
" error \"Can't found '$script_cmd', This application may not be able to uninstall cleanly.\"",
"}"
]
},
"checkver":"github",
"autoupdate": {
"url": "https://list.nb.gl/OD_scoop/apt-cdn/ThunderX/$version/GreenderX_Portable.zip"
}
}