File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ function getSSLPage($url) {
169
169
170
170
$ sdk
171
171
->setName ('NAME ' )
172
- ->setVersion ('0.0.19 ' )
172
+ ->setVersion ('0.16.0 ' )
173
173
->setDescription ('Repo description goes here ' )
174
174
->setShortDescription ('Repo short description goes here ' )
175
175
->setURL ('https://appwrite.io ' )
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ ${{ spec.title | upper }}_DOWNLOAD_DIR = Join-Path -Path $env:TEMP -ChildPath "{
21
21
22
22
# {{ spec .title | caseUcfirst }} CLI location
23
23
${{ spec .title | upper }}_INSTALL_DIR = Join-Path -Path $env:LOCALAPPDATA -ChildPath "{{ spec .title | caseUcfirst }}"
24
+ ${{ spec .title | upper }}_INSTALL_FILE = Join-Path -Path ${{ spec .title | upper }}_INSTALL_DIR -ChildPath "{{ language .params .executableName }}.exe"
24
25
25
26
$USER_PATH_ENV_VAR = [Environment]::GetEnvironmentVariable("PATH", "User")
26
27
@@ -53,8 +54,8 @@ function DownloadBinary {
53
54
Invoke-WebRequest -Uri $GITHUB_x64_URL -OutFile ${{ spec .title | upper }}_DOWNLOAD_DIR
54
55
}
55
56
56
-
57
- Move-Item ${{ spec .title | upper }}_DOWNLOAD_DIR ${{ spec .title | upper }}_INSTALL_DIR
57
+ New-Item -ItemType Directory -Force -Path ${{ spec . title | upper }}_INSTALL_DIR | Out-Null
58
+ Move-Item ${{ spec .title | upper }}_DOWNLOAD_DIR ${{ spec .title | upper }}_INSTALL_FILE
58
59
}
59
60
60
61
@@ -65,6 +66,7 @@ function Install {
65
66
Write-Host "Skipping to add {{ spec .title | caseUcfirst }} to User Path."
66
67
} else {
67
68
[System.Environment]::SetEnvironmentVariable("PATH", $USER_PATH_ENV_VAR + ";${{ spec .title | upper }}_INSTALL_DIR", "User")
69
+ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
68
70
}
69
71
}
70
72
You can’t perform that action at this time.
0 commit comments