mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-03 02:18:27 +00:00
26 lines
836 B
PowerShell
26 lines
836 B
PowerShell
|
$ErrorActionPreference = 'Stop'
|
|||
|
|
|||
|
$packageName = $env:ChocolateyPackageName
|
|||
|
|
|||
|
$url_x86_64_msi = ''
|
|||
|
$url_i686_msi = ''
|
|||
|
$checksum_x86_64_msi = ''
|
|||
|
$checksum_i686_msi = ''
|
|||
|
|
|||
|
$packageArgs = @{
|
|||
|
packageName = $packageName
|
|||
|
fileType = 'msi'
|
|||
|
url = $url_i686_msi
|
|||
|
url64bit = $url_x86_64_msi
|
|||
|
checksum = $checksum_i686_msi
|
|||
|
checksum64 = $checksum_x86_64_msi
|
|||
|
checksumType = 'sha256'
|
|||
|
softwareName = 'starship*'
|
|||
|
silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
|
|||
|
validExitCodes = @(0, 3010, 1641)
|
|||
|
}
|
|||
|
Install-ChocolateyPackage @packageArgs
|
|||
|
|
|||
|
# Add to Profile
|
|||
|
Write-Host "Add the following to the end of ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 'Invoke-Expression (&starship init powershell)'"
|