https://github.com/abgox/scooptype
Provide friendly prompts and verification when writing app manifests. 为 Scoop 应用清单的编写提供友好的提示和校验。
https://github.com/abgox/scooptype
app-manifest schema scoop scoop-apps
Last synced: about 1 month ago
JSON representation
Provide friendly prompts and verification when writing app manifests. 为 Scoop 应用清单的编写提供友好的提示和校验。
- Host: GitHub
- URL: https://github.com/abgox/scooptype
- Owner: abgox
- License: mit
- Archived: true
- Created: 2024-01-10T10:27:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-16T06:29:17.000Z (about 1 year ago)
- Last Synced: 2025-02-26T21:14:14.687Z (3 months ago)
- Topics: app-manifest, schema, scoop, scoop-apps
- Homepage: https://abgox.github.io/ScoopType/schema/en-US-min.json
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
- License: LICENSE
Awesome Lists containing this project
README
✨ ScoopType ✨
English |
简体中文 |
Github |
Gitee---
# 注意: 此仓库内容已经移动到新仓库 ([schema](https://gitee.com/abgox/schema)) 进行统一管理
## 介绍
- 给 Scoop 应用清单 (App-Manifests) 的编写提供友好的提示和校验
---
- [什么是 Scoop ?](https://github.com/ScoopInstaller/Scoop)
- [什么是 Scoop 中的应用清单(App-Manifests) ?](https://github.com/ScoopInstaller/Scoop/wiki/App-Manifests)## 使用
- 在编写应用清单时,添加以下属性就可以获得来自编辑器的提示和校验
> 推荐使用 [vscode](https://code.visualstudio.com)
- 方式一: 在 json 中直接添加此属性
```json
"$schema": "https://abgox.github.io/schema/Scoop/zh-CN/manifest-min.json",
```
- 方式二: 可以在 vscode 配置文件(settings.json)中添加, 这会作用于所有匹配的 json 文件- 如果不是使用 vscode, 你需要查询所使用的编辑器官方的配置方法
```json
"json.schemas": [
{
"url": "https://abgox.github.io/schema/Scoop/zh-CN/manifest-min.json",
"fileMatch": [
"bucket/**/*.json",
"deprecated/**/*.json"
]
}
]
```- 推荐使用方式二, 方式二不会对原始的 json 文件造成侵入性
- Url (移除文件名中的 `-min`,就是未压缩文件)
- `https://abgox.github.io/schema/Scoop/zh-CN/manifest-min.json`
- `https://abgox.github.io/schema/Scoop/en-US/manifest-min.json`
## Demo
