Skip to content

Commit 7c9e878

Browse files
committed
added first draft of sccop manifest
1 parent edc4df3 commit 7c9e878

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/SDK/Language/CLI.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ public function getFiles(): array
7171
'destination' => 'package.json',
7272
'template' => 'cli/package.json.twig',
7373
],
74+
[
75+
'scope' => 'default',
76+
'destination' => 'appwrite.json',
77+
'template' => 'cli/appwrite.json.twig',
78+
'minify' => false,
79+
],
7480
[
7581
'scope' => 'default',
7682
'destination' => 'LICENSE.md',

templates/cli/appwrite.json.twig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3+
"version": "{{ sdk.version }}",
4+
"description": "Appwrite cli project manager",
5+
"license": "BSD-3-Clause",
6+
"url": "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/releases/download/{{ sdk.version }}/{{ language.params.executableName }}-cli-win-x64.exe",
7+
"bin": [
8+
[
9+
"{{ language.params.executableName }}-cli-win-x64.exe",
10+
"{{ language.params.executableName|caseLower }}"
11+
]
12+
],
13+
"homepage": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}",
14+
"hash": "https://github.com/appwrite/sdk-for-cli/releases/download/$version/hashes",
15+
"checkver": {
16+
"url": "https://api.github.com/repos/appwrite/sdk-for-cli/releases",
17+
"jsonpath": "$[0].tag_name"
18+
},
19+
"autoupdate": {
20+
"url": "https://github.com/appwrite/sdk-for-cli/releases/download/$version/appwrite-cli-win-x64.exe",
21+
"hash": "$url.sha256"
22+
}
23+
}

0 commit comments

Comments
 (0)