-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgitea.json
59 lines (59 loc) · 2.09 KB
/
gitea.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
52
53
54
55
56
57
58
59
{
"version": "1.23.5",
"description": "A painless self-hosted Git service",
"homepage": "https://gitea.io/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://dl.gitea.com/gitea/1.23.5/gitea-1.23.5-windows-4.0-amd64.exe.xz",
"hash": "51127ea0e56bb46315d2750881e07728a3c87b2cebb8338c1983cbe05a18a240"
},
"32bit": {
"url": "https://dl.gitea.com/gitea/1.23.5/gitea-1.23.5-windows-4.0-386.exe.xz",
"hash": "ea12538d225f49385194747ec8ca4759a857b8c5c58d9491be6bd788c23c8007"
}
},
"installer": {
"script": [
"Get-Item \"$dir\\gitea*.exe\" | Rename-Item -NewName 'gitea.exe'",
"if (!(Test-Path \"$persist_dir\\custom\\conf\")) {",
" New-Item \"$persist_dir\\custom\\conf\" -ItemType Directory | Out-Null",
"}",
"if (!(Test-Path \"$persist_dir\\custom\\conf\\app.ini\")) {",
" @(",
" '[database]'",
" 'DB_TYPE = sqlite3'",
" \"PATH = $persist_dir/data/gitea.db\"",
" '[repository]'",
" \"ROOT = $persist_dir/repositories\"",
" '[log]'",
" \"ROOT_PATH = $persist_dir/log\"",
" ) -replace '\\\\', '/' | Set-Content \"$persist_dir\\custom\\conf\\app.ini\" -Encoding ASCII",
"}"
]
},
"bin": "gitea.exe",
"persist": [
"custom",
"repositories",
"log",
"data"
],
"checkver": {
"url": "https://dl.gitea.com/gitea/version.json",
"jsonpath": "$.latest.version"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://dl.gitea.com/gitea/$version/gitea-$version-windows-4.0-amd64.exe.xz"
},
"32bit": {
"url": "https://dl.gitea.com/gitea/$version/gitea-$version-windows-4.0-386.exe.xz"
}
},
"hash": {
"url": "$url.sha256"
}
}
}