Evidence

References a release download URL path lines 1–22
1# Licensed under the MIT license
2# <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
3# option. This file may not be copied, modified, or distributed
4# except according to those terms.
5
6<#
7.SYNOPSIS
8
9The installer for alphai-tui 0.40.0
10
11.DESCRIPTION
12
13This script detects what platform you're on and fetches an appropriate archive from
14https://github.com/makeev/alphai-tui/releases/download/v0.40.0
15then unpacks the binaries and installs them to
16
17 $env:CARGO_HOME/bin (or $HOME/.cargo/bin)
18
19It will then add that dir to PATH by editing your Environment.Path registry key
20
21.PARAMETER NoModifyPath
22Don't add th …
HTTP URL string literal lines 47–55
47:70… leases/download/v0.40.0")
48} else {
49 $ArtifactDownloadUrls = @("https://github.com/makeev/alphai-tui/releases/download/v0.40.0")
50}
51
⋯4 lines
PowerShell script path introspection lines 84–94
84:6… ion Install-Binary($install_args) {
85 if ($Help) {
86 Get-Help $PSCommandPath -Detailed
87 Exit
88 }
⋯6 lines
PowerShell serializes objects as JSON lines 121–137
⋯5 lines
126 $arch = Get-TargetTriple $platforms
127 if (-not $platforms.ContainsKey($arch)) {
128 $platforms_json = ConvertTo-Json $platforms
129 throw "ERROR: could not find binaries for this platform. Last platform tried: $arch platform info: $platforms_json"
130 }
⋯7 lines
Binds Reflection.Assembly to a variable lines 180–186
180:90… 22H2.
181 # Ideally this would just be
182 # [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
183 # but that gets a type from the wrong assembly on Windows PowerShell (i.e. not Core)
184 $a = [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime.InteropServices.RuntimeInformation")
185 $t = $a.GetType("System.Runtime.InteropServices.RuntimeInformation")
186 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.