1
+ ## <script src =" /dist/scripts/cli-bash.js" ></script >
2
+ ## <link href =" https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/themes/prism-okaidia.min.css" rel =" stylesheet" />
3
+ ## <script src =" https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/prism-core.min.js" data-manual ></script >
4
+ ## <script src =" https://cdnjs.cloudflare.com/ajax/libs/prism/1.16.0/components/prism-bash.min.js" ></script >
5
+ ## <style >body {color : #272822 ; background-color : #272822 ; font-size : 0.8em ;} </style >
1
6
# Love open-source, dev-tooling and passionate about code as much as we do?
2
7
# ---
3
8
# We're always looking for awesome hackers like you to join our 100% remote team!
4
- # Check and see if you find any relevant position @ https://appwrite. io/company/careers
9
+ # Check and see if you find any relevant position @ https://{{ spec . title | lower }}. io/company/careers 👩💻 😎
5
10
# (and let us know you found this message...)
6
11
7
12
# This script contains hidden JS code to allow better readability and syntax highlighting
8
13
# You can use "View source" of this page to see the full script.
9
14
10
15
# REPO
11
- $GITHUB_x64_URL = "https://github.com/appwrite/ sdk-for-cli /releases/download/{{ sdk .version }}/appwrite -cli-win-x64.exe"
12
- $GITHUB_arm64_URL = "https://github.com/appwrite/ sdk-for-cli /releases/download/{{ sdk .version }}/appwrite -cli-win-arm64.exe"
16
+ $GITHUB_x64_URL = "https://github.com/{{ sdk . gitUserName }}/{{ sdk . gitRepoName | caseDash }} /releases/download/{{ sdk .version }}/{{ language . params . executableName }} -cli-win-x64.exe"
17
+ $GITHUB_arm64_URL = "https://github.com/{{ sdk . gitUserName }}/{{ sdk . gitRepoName | caseDash }} /releases/download/{{ sdk .version }}/{{ language . params . executableName }} -cli-win-arm64.exe"
13
18
14
19
# Appwrite download directory
15
20
${{ spec .title | upper }}_DOWNLOAD_DIR = Join-Path -Path $env:TEMP -ChildPath "{{ language .params .executableName }}.exe"
@@ -21,13 +26,8 @@ $USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User")
21
26
22
27
function Greeting {
23
28
Write-Host @"
24
- _ _ _ ___ __ _____
25
- /_\ _ __ _ ____ ___ __(_) |_ ___ / __\ / / \_ \
26
- //_\| '_ \| '_ \ \ /\ / / '__| | __/ _ \ / / / / / /\/
27
- / _ \ |_) | |_) \ V V /| | | | || __/ / /___/ /___/\/ /_
28
- \_/ \_/ .__/| .__/ \_/\_/ |_| |_|\__\___| \____/\____/\____/
29
- |_| |_|
30
-
29
+ {{ language .params .logoUnescaped | raw }}
30
+
31
31
"@ -ForegroundColor red
32
32
Write-Host "Welcome to the {{ spec .title | caseUcfirst }} CLI install shield."
33
33
}
@@ -54,17 +54,17 @@ function DownloadBinary {
54
54
}
55
55
56
56
57
- Move-Item $APPWRITE_DOWNLOAD_DIR $APPWRITE_INSTALL_DIR
57
+ Move-Item ${{ spec . title | upper }}_DOWNLOAD_DIR ${{ spec . title | upper }}_INSTALL_DIR
58
58
}
59
59
60
60
61
61
function Install {
62
62
Write-Host "[3/4] Starting installation ..."
63
63
64
- if ($USER_PATH_ENV_VAR -like '*Appwrite *') {
64
+ if ($USER_PATH_ENV_VAR -like '*{{ spec . title | caseUcfirst }} *') {
65
65
Write-Host "Skipping to add {{ spec .title | caseUcfirst }} to User Path."
66
66
} else {
67
- [System.Environment]::SetEnvironmentVariable("PATH", $USER_PATH_ENV_VAR + ";$APPWRITE_INSTALL_DIR ", "User")
67
+ [System.Environment]::SetEnvironmentVariable("PATH", $USER_PATH_ENV_VAR + ";${{ spec . title | upper }}_INSTALL_DIR ", "User")
68
68
}
69
69
}
70
70
0 commit comments