Skip to content

Instantly share code, notes, and snippets.

@matt40k
Created October 8, 2020 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matt40k/5e9992f72bbe7cc2be1032287c3b78ff to your computer and use it in GitHub Desktop.
Save matt40k/5e9992f72bbe7cc2be1032287c3b78ff to your computer and use it in GitHub Desktop.
Latest TabularEditor
# Download URL for the latest Tabular Editor portable:
$TabularEditorUrl = Invoke-RestMethod -uri https://api.github.com/repos/otykier/TabularEditor/releases/latest | select -ExpandProperty assets | select -expand browser_download_url | ? { $_.Contains("Portable")}
# Download destination (root of PowerShell script execution path):
$DownloadDestination = join-path (get-location) "TabularEditor.zip"
# Download from GitHub:
Invoke-WebRequest -Uri $TabularEditorUrl -OutFile $DownloadDestination
# Unzip Tabular Editor portable, and then delete the zip file:
Expand-Archive -Path $DownloadDestination -DestinationPath (get-location).Path
Remove-Item $DownloadDestination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment