-
Notifications
You must be signed in to change notification settings - Fork 0
/
cosupload.json
36 lines (36 loc) · 1.61 KB
/
cosupload.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
{
"homepage": "https://github.com/onlyice/scoop-bucket/tree/master/scripts/cosupload",
"license": "MIT",
"version": "0.1",
"depends": [
"python"
],
"bin": "cosupload.ps1",
"checkver": {
"url": "https://raw.githubusercontent.com/onlyice/scoop-bucket/master/scripts/cosupload/README.md",
"re": "v([\\d.]+)"
},
"url": [
"https://raw.githubusercontent.com/onlyice/scoop-bucket/cosupload-v0.1/scripts/cosupload/cosupload.ps1",
"https://raw.githubusercontent.com/onlyice/scoop-bucket/master/scripts/cosupload/cosupload-install-context.reg",
"https://raw.githubusercontent.com/onlyice/scoop-bucket/master/scripts/cosupload/cosupload-uninstall-context.reg"
],
"hash": [
"04cd6b086a99f4e5375d524d0bb68103dc5372040245afe6742981e7525a32b6",
"ccbb5e586204a3f70daa493cc9a4c6e28dc09810342f0183571dcde747c2d3db",
"593debf1ca620dd9b4e43d4f3366c2974288f8196fcfd636034eb4f75896846b"
],
"autoupdate": {
"url": "https://raw.githubusercontent.com/onlyice/scoop-bucket/cosupload-v$version/scripts/cosupload/cosupload.ps1"
},
"pre_install": "pip install -U coscmd",
"post_install": [
" $cosuploadpath = \"$dir\\cosupload.ps1\".Replace('\\', '\\\\')",
" $content = Get-Content \"$dir\\cosupload-install-context.reg\"",
" $content = $content.Replace('$cosupload', $cosuploadpath)",
" $content | Set-Content -Path \"$dir\\cosupload-install-context.reg\""
],
"notes": [
"Add 'Upload to COS' as a context menu option by running: '$dir\\cosupload-install-context.reg'"
]
}