diff --git a/src/SDK/Language/CLI.php b/src/SDK/Language/CLI.php index 9631ca7a5..0b894bf66 100644 --- a/src/SDK/Language/CLI.php +++ b/src/SDK/Language/CLI.php @@ -73,8 +73,8 @@ public function getFiles(): array ], [ 'scope' => 'default', - 'destination' => 'appwrite.json', - 'template' => 'cli/appwrite.json.twig', + 'destination' => 'scoop/appwrite.json', + 'template' => 'cli/scoop/appwrite.json.twig', 'minify' => false, ], [ diff --git a/templates/cli/README.md.twig b/templates/cli/README.md.twig index 699a80549..3f5aff69e 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/appwrite.json.twig b/templates/cli/scoop/appwrite.json.twig similarity index 74% rename from templates/cli/appwrite.json.twig rename to templates/cli/scoop/appwrite.json.twig index 34d8f9d57..e95227762 100644 --- a/templates/cli/appwrite.json.twig +++ b/templates/cli/scoop/appwrite.json.twig @@ -11,13 +11,8 @@ ] ], "homepage": "https://github.com/{{ sdk.gitUserName|url_encode }}/{{ sdk.gitRepoName|url_encode }}", - "hash": "https://github.com/appwrite/sdk-for-cli/releases/download/$version/hashes", "checkver": { "url": "https://api.github.com/repos/appwrite/sdk-for-cli/releases", "jsonpath": "$[0].tag_name" - }, - "autoupdate": { - "url": "https://github.com/appwrite/sdk-for-cli/releases/download/$version/appwrite-cli-win-x64.exe", - "hash": "$url.sha256" } } \ No newline at end of file