-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1092 from d35ha/time-travel-debugging-cli
Add the Time Travel Debugging CLI package
- Loading branch information
Showing
3 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
$ErrorActionPreference = 'Stop' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
try { | ||
$toolName = "ttd" | ||
$category = "Debuggers" | ||
|
||
# From https://aka.ms/ttd/download | ||
$bundleUrl = "https://windbg.download.prss.microsoft.com/dbazure/prod/1-11-319-0/TTD.msixbundle" | ||
$bundleSha256 = "f7b80731c3a6994b3763c4100073b101965327d6556fa4bfb553d70ce49be366" | ||
|
||
$packageArgs = @{ | ||
packageName = ${Env:ChocolateyPackageName} | ||
url = $bundleUrl | ||
checksum = $bundleSha256 | ||
checksumType = "sha256" | ||
fileFullPath = Join-Path ${Env:TEMP} "$toolName.msixbundle" | ||
} | ||
|
||
Get-ChocolateyWebFile @packageArgs | ||
Add-AppxPackage -Path $packageArgs.fileFullPath | ||
|
||
VM-Install-Shortcut -toolName $toolName -category $category -executablePath "$toolName.exe" -consoleApp $true -runAsAdmin | ||
} catch { | ||
VM-Write-Log-Exception $_ | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$ErrorActionPreference = 'Continue' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
$toolName = "ttd" | ||
$category = "Debuggers" | ||
|
||
VM-Remove-Tool-Shortcut $toolName $category | ||
|
||
Get-AppxPackage *TimeTravelDebugging* | Remove-AppPackage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>ttd.vm</id> | ||
<version>1.11.319.20240614</version> | ||
<authors>Microsoft</authors> | ||
<description>Time travel debugging command line utility.</description> | ||
<dependencies> | ||
<dependency id="common.vm" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |