Skip to content

windows download script -enhancement #360

Description

@pocelka

I have tried like two days to understand how git works. Got the basics, then wanted to install git on my work PC and something went wrong. Then read contribution guide about branching and got totally lost.

I'm sorry but it is easier just to post it here.

I wanted to the the following change in "install.md":

For Windows systems with Powershell installed (i.e. Windows 10) the following snippet can be used to download latest version of utPLSQL:

$archiveName = 'utPLSQL.zip'
$latestRepo = Invoke-WebRequest https://api.github.com/repos/utPLSQL/utPLSQL/releases/latest
$repo = $latestRepo.Content | Convertfrom-Json

$urlList = $repo.assets.browser_download_url

foreach ($i in $urlList) {

   $fileName = $i.substring($i.LastIndexOf("/") + 1)

   if ( $fileName.substring($fileName.LastIndexOf(".") + 1) -eq 'zip' ) {
      Invoke-WebRequest $i -OutFile $archiveName
      unzip -q $archiveName
   }
}

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions