diff --git a/src/SDK/Language/CLI.php b/src/SDK/Language/CLI.php index 89f17ad17..0b894bf66 100644 --- a/src/SDK/Language/CLI.php +++ b/src/SDK/Language/CLI.php @@ -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', diff --git a/templates/cli/README.md.twig b/templates/cli/README.md.twig index 699a80549..fa0811352 100644 --- a/templates/cli/README.md.twig +++ b/templates/cli/README.md.twig @@ -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 ``` diff --git a/templates/cli/scoop/appwrite.json.twig b/templates/cli/scoop/appwrite.json.twig new file mode 100644 index 000000000..c4ccbaef8 --- /dev/null +++ b/templates/cli/scoop/appwrite.json.twig @@ -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 }}" + } +} \ No newline at end of file