Created
October 8, 2020 15:52
-
-
Save matt40k/5e9992f72bbe7cc2be1032287c3b78ff to your computer and use it in GitHub Desktop.
Latest TabularEditor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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