Skip to content

Commit 396ad3c

Browse files
nikole-duniximarler8997
authored andcommitted
feat: Include powershell command on website for improved developer introp
1 parent 2b93f05 commit 396ad3c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@
146146
var include_curl = true;
147147
var include_wget = true;
148148
var include_homebrew = false;
149+
var include_powershell = false;
149150

150151
function updateInstallDiv() {
151152
var arch_os = null;
152153
var archive_ext = null;
153154
include_homebrew = false;
155+
include_powershell = false;
154156
if (current_os == OS_LINUX) {
155157
archive_ext = ".tar.gz";
156158
if (current_arch == ARCH_X86_64) {
@@ -169,6 +171,7 @@
169171
} else if (current_os == OS_WINDOWS) {
170172
archive_ext = ".zip";
171173
if (current_arch == ARCH_X86_64) {
174+
include_powershell = true;
172175
arch_os = "x86_64-windows";
173176
}
174177
}
@@ -192,6 +195,9 @@
192195
if (include_wget) {
193196
html += generateCommandHtml(ids, 'wget -O - ' + archive_url + ' | tar xz');
194197
}
198+
if (include_powershell) {
199+
html += generateCommandHtml(ids, "Invoke-WebRequest -Uri " + archive_url + " -OutFile \"zigup-" + arch_os + ".zip\"; Expand-Archive -Path \"zigup-" + arch_os + ".zip\" -DestinationPath \"zigup-" + version + "\"");
200+
}
195201
html += "</div></section>";
196202
}
197203
get('InstallDiv').innerHTML = html;

0 commit comments

Comments
 (0)