File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 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 ) {
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 }
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 ;
You can’t perform that action at this time.
0 commit comments