/
unityhub.json
48 lines (48 loc) 路 1.71 KB
/
unityhub.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
{
"homepage": "https://unity.com/unity-hub",
"description": "The world鈥檚 most popular development platform for creating 2D and 3D multiplatform games",
"license": {
"identifier": "Freeware",
"url": "https://unity3d.com/legal/terms-of-service"
},
"version": "3.8.0",
"architecture": {
"64bit": {
"url": "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe#/dl.7z",
"installer": {
"script": [
"Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\"",
"Remove-Item \"$dir\\`$PLUGINSDIR\" -Recurse"
]
}
}
},
"post_install": [
"Write-Host \"Registering unityhub:// protocol handler\"",
"$regpath = \"HKCU:\\SOFTWARE\\Classes\\unityhub\"",
"New-Item -Path $regpath -Value \"URL:unityhub\" -Force | Out-Null",
"New-ItemProperty -Path $regpath -Name \"URL Protocol\" -PropertyType String -Force | Out-Null",
"New-Item -Path \"$regpath\\shell\\Open\\command\" -Value \"`\"$dir\\Unity Hub.exe`\" `\"%1`\"\" -Force| Out-Null"
],
"uninstaller": {
"script": [
"Write-Host \"Unregistering unityhub:// protocol handler\"",
"Remove-Item \"HKCU:\\SOFTWARE\\Classes\\unityhub\" -Recurse -Force"
]
},
"shortcuts": [
[
"Unity Hub.exe",
"Unity Hub"
]
],
"checkver": {
"url": "https://unity.com/unity-hub/release-notes",
"regex": "class=\"active\">([\\d.]+)</a>"
},
"autoupdate": {
"64bit": {
"url": "https://public-cdn.cloud.unity3d.com/hub/prod/UnityHubSetup.exe#/dl.7z"
}
}
}