Skip to content

Commit

Permalink
Merge pull request #450 from CEbbinghaus/feature/addingScoop
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar authored Jun 7, 2023
2 parents 020ffd9 + b96a780 commit 419002b
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SDK/Language/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ public function getFiles(): array
'destination' => 'package.json',
'template' => 'cli/package.json.twig',
],
[
'scope' => 'default',
'destination' => 'scoop/appwrite.json',
'template' => 'cli/scoop/appwrite.json.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'LICENSE.md',
Expand Down
5 changes: 5 additions & 0 deletions templates/cli/README.md.twig
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,14 @@ $ brew install --HEAD {{ language.params.executableName }}
> Please note that `--HEAD` will be removed with official release.

### Windows
Via Powershell
```powershell
$ iwr -useb {{ sdk.url }}/cli/install.ps1 | iex
```
Via [Scoop](https://scoop.sh)
```powershell
$ scoop install https://raw.githubusercontent.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/master/scoop/appwrite.json
```

Once the installation completes, you can verify your install using
```
Expand Down
30 changes: 30 additions & 0 deletions templates/cli/scoop/appwrite.json.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://raw.githubusercontent.com/ScoopInstaller/Scoop/master/schema.json",
"version": "{{ sdk.version }}",
"description": "The Appwrite CLI is a command-line application that allows you to interact with Appwrite and perform server-side tasks using your terminal.",
"homepage": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}",
"license": "BSD-3-Clause",
"architecture": {
"64bit": {
"url": "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/releases/download/{{ sdk.version }}/{{ language.params.executableName }}-cli-win-x64.exe",
"bin": [
[
"{{ language.params.executableName }}-cli-win-x64.exe",
"{{ language.params.executableName|caseLower }}"
]
]
},
"arm64": {
"url": "https://github.com/{{ sdk.gitUserName }}/{{ sdk.gitRepoName | caseDash }}/releases/download/{{ sdk.version }}/{{ language.params.executableName }}-cli-win-arm64.exe",
"bin": [
[
"{{ language.params.executableName }}-cli-win-arm64.exe",
"{{ language.params.executableName|caseLower }}"
]
]
}
},
"checkver": {
"github": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}"
}
}

0 comments on commit 419002b

Please sign in to comment.