1 Star 0 Fork 0

赵权/scoop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
schema.json 16.95 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
{
"$id": "http://scoop.sh/draft/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"hashPattern": {
"pattern": "^([a-fA-F0-9]{64}|(sha1|sha256|sha512|md5):([a-fA-F0-9]{32}|[a-fA-F0-9]{40}|[a-fA-F0-9]{64}|[a-fA-F0-9]{128}))$",
"type": "string"
},
"hash": {
"anyOf": [
{
"$ref": "#/definitions/hashPattern"
},
{
"items": {
"$ref": "#/definitions/hashPattern"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
}
]
},
"hashExtraction": {
"additionalProperties": false,
"properties": {
"find": {
"format": "regex",
"type": "string",
"description": "Same as 'regex'"
},
"regex": {
"format": "regex",
"type": "string"
},
"jp": {
"pattern": "^\\$[.[].*$",
"type": "string",
"description": "Same as 'jsonpath'"
},
"jsonpath": {
"pattern": "^\\$[.[].*$",
"type": "string"
},
"xpath": {
"type": "string"
},
"mode": {
"enum": [
"download",
"extract",
"json",
"xpath",
"rdf",
"metalink",
"fosshub",
"sourceforge"
]
},
"type": {
"enum": [
"md5",
"sha1",
"sha256",
"sha512"
],
"description": "Deprecated, hash type is determined automatically"
},
"url": {
"anyOf": [
{
"format": "uri",
"type": "string"
},
{
"pattern": "^(\\$url|\\$baseurl).[\\w\\d]+$",
"type": "string"
},
{
"pattern": "^.*(\\$url|\\$baseurl).*$",
"type": "string"
}
]
}
},
"type": "object"
},
"architecture": {
"additionalProperties": false,
"properties": {
"bin": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"checkver": {
"$ref": "#/definitions/checkver"
},
"env_add_path": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"env_set": {
"type": "object"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"hash": {
"$ref": "#/definitions/hash"
},
"installer": {
"$ref": "#/definitions/installer"
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"shortcuts": {
"$ref": "#/definitions/shortcutsArray"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
},
"url": {
"$ref": "#/definitions/uriOrArrayOfUris"
}
},
"type": "object"
},
"arrayOfArrayOfStrings": {
"items": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"minItems": 1,
"type": "array"
},
"shortcutsArray": {
"items": {
"items": {
"type": "string"
},
"minItems": 2,
"maxItems": 4,
"type": "array"
},
"minItems": 1,
"type": "array"
},
"autoupdate": {
"additionalProperties": false,
"properties": {
"architecture": {
"additionalProperties": false,
"properties": {
"32bit": {
"additionalProperties": false,
"properties": {
"extract_dir": {
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
},
"hash": {
"$ref": "#/definitions/hashExtraction"
}
},
"type": "object"
},
"64bit": {
"additionalProperties": false,
"properties": {
"extract_dir": {
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
},
"hash": {
"$ref": "#/definitions/hashExtraction"
}
},
"type": "object"
}
},
"type": "object"
},
"extract_dir": {
"type": "string"
},
"hash": {
"$ref": "#/definitions/hashExtraction"
},
"note": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"url": {
"format": "uri",
"type": "string"
}
},
"type": "object"
},
"checkver": {
"anyOf": [
{
"format": "regex",
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"github": {
"format": "uri",
"type": "string"
},
"re": {
"format": "regex",
"type": "string",
"description": "Same as 'regex'"
},
"regex": {
"format": "regex",
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
},
"jp": {
"pattern": "^\\$[.[].*$",
"type": "string",
"description": "Same as 'jsonpath'"
},
"jsonpath": {
"pattern": "^\\$[.[].*$",
"type": "string"
},
"xpath": {
"type": "string"
},
"reverse": {
"description": "Reverse the order of regex matches",
"type": "boolean"
},
"replace": {
"description": "Allows rearrange the regexp matches",
"type": "string"
},
"useragent": {
"type": "string"
}
},
"type": "object"
}
]
},
"installer": {
"additionalProperties": false,
"properties": {
"_comment": {
"description": "Undocumented: only used in scoop-extras/oraclejdk* and scoop-extras/appengine-go",
"type": "string"
},
"args": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"file": {
"type": "string"
},
"script": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"keep": {
"type": "boolean"
}
},
"type": "object"
},
"stringOrArrayOfStrings": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
}
]
},
"stringOrArrayOfStringsOrAnArrayOfArrayOfStrings": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"minItems": 1,
"type": "array"
}
]
},
"uninstaller": {
"properties": {
"args": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"file": {
"type": "string"
},
"script": {
"$ref": "#/definitions/stringOrArrayOfStrings"
}
},
"oneOf": [
{
"required": [
"file"
]
},
{
"required": [
"script"
]
}
],
"type": "object"
},
"uriOrArrayOfUris": {
"anyOf": [
{
"format": "uri",
"not": {
"pattern": "(\\$)"
},
"type": "string"
},
{
"items": {
"format": "uri",
"not": {
"pattern": "(\\$)"
},
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
}
]
},
"licenseIdentifiers": {
"type": "string",
"description": "License identifier based on SPDX License List https://spdx.org/licenses/",
"examples": [
"Apache-2.0",
"BSD-3-Clause",
"Freeware",
"GPL-2.0-only",
"GPL-2.0-or-later",
"GPL-3.0-only",
"GPL-3.0-or-later",
"ISC",
"LGPL-2.0-only",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"LGPL-3.0-only",
"LGPL-3.0-or-later",
"MIT",
"MS-PL",
"Proprietary",
"Public Domain",
"Shareware",
"Unlicense"
]
}
},
"properties": {
"_comment": {
"description": "Deprecated. Use ## instead.",
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"##": {
"description": "A comment.",
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"architecture": {
"additionalProperties": false,
"properties": {
"32bit": {
"$ref": "#/definitions/architecture"
},
"64bit": {
"$ref": "#/definitions/architecture"
}
},
"type": "object"
},
"autoupdate": {
"$ref": "#/definitions/autoupdate"
},
"bin": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"persist": {
"$ref": "#/definitions/stringOrArrayOfStringsOrAnArrayOfArrayOfStrings"
},
"checkver": {
"$ref": "#/definitions/checkver"
},
"cookie": {
"description": "Undocumented: Found at https://github.com/se35710/scoop-java/search?l=JSON&q=cookie",
"type": "object"
},
"depends": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"description": {
"type": "string"
},
"env_add_path": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"env_set": {
"type": "object"
},
"extract_dir": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"extract_to": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"hash": {
"$ref": "#/definitions/hash"
},
"homepage": {
"format": "uri",
"type": "string"
},
"innosetup": {
"description": "True if the installer InnoSetup based. Found in https://github.com/lukesampson/scoop/search?l=JSON&q=innosetup",
"type": "boolean"
},
"installer": {
"$ref": "#/definitions/installer"
},
"license": {
"anyOf": [
{
"$ref": "#/definitions/licenseIdentifiers"
},
{
"additionalProperties": false,
"properties": {
"url": {
"format": "uri",
"type": "string"
},
"identifier": {
"$ref": "#/definitions/licenseIdentifiers"
}
},
"required": [
"identifier"
],
"type": "object"
}
]
},
"msi": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Deprecated"
},
"notes": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"post_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"pre_install": {
"$ref": "#/definitions/stringOrArrayOfStrings"
},
"psmodule": {
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
}
},
"type": "object"
},
"shortcuts": {
"$ref": "#/definitions/shortcutsArray"
},
"suggest": {
"additionalProperties": false,
"patternProperties": {
"^(.*)$": {
"$ref": "#/definitions/stringOrArrayOfStrings"
}
},
"type": "object"
},
"uninstaller": {
"$ref": "#/definitions/uninstaller"
},
"url": {
"$ref": "#/definitions/uriOrArrayOfUris"
},
"version": {
"pattern": "^[\\w\\.\\-_]+$",
"type": "string"
}
},
"required": [
"version"
],
"title": "scoop app manifest schema",
"type": "object"
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhaoquan/scoop.git
git@gitee.com:zhaoquan/scoop.git
zhaoquan
scoop
scoop
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385