Skip to content

Commit 419002b

Browse files
Merge pull request #450 from CEbbinghaus/feature/addingScoop
2 parents 020ffd9 + b96a780 commit 419002b

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-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' => 'scoop/appwrite.json',
77+
'template' => 'cli/scoop/appwrite.json.twig',
78+
'minify' => false,
79+
],
7480
[
7581
'scope' => 'default',
7682
'destination' => 'LICENSE.md',

templates/cli/README.md.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,14 @@ $ brew install --HEAD {{ language.params.executableName }}
5959
> Please note that `--HEAD` will be removed with official release.
6060

6161
### Windows
62+
Via Powershell
6263
```powershell
6364
$ iwr -useb {{ sdk.url }}/cli/install.ps1 | iex
6465
```
66+
Via [Scoop](https://scoop.sh)
67+
```powershell
68+
$ scoop install https://raw.githubusercontent.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/master/scoop/appwrite.json
69+
```
6570

6671
Once the installation completes, you can verify your install using
6772
```
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
3+
"version": "{{ sdk.version }}",
4+
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
5+
"homepage": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}",
6+
"license": "BSD-3-Clause",
7+
"architecture": {
8+
"64bit": {
9+
"url": "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/releases/download/{{ sdk.version }}/{{ language.params.executableName }}-cli-win-x64.exe",
10+
"bin": [
11+
[
12+
"{{ language.params.executableName }}-cli-win-x64.exe",
13+
"{{ language.params.executableName|caseLower }}"
14+
]
15+
]
16+
},
17+
"arm64": {
18+
"url": "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/releases/download/{{ sdk.version }}/{{ language.params.executableName }}-cli-win-arm64.exe",
19+
"bin": [
20+
[
21+
"{{ language.params.executableName }}-cli-win-arm64.exe",
22+
"{{ language.params.executableName|caseLower }}"
23+
]
24+
]
25+
}
26+
},
27+
"checkver": {
28+
"github": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}"
29+
}
30+
}

0 commit comments

Comments
 (0)