mirror of
https://github.com/starship/starship.git
synced 2024-12-15 20:00:45 +01:00
df37e8d40c
* feat(release): add chocolatey publishing * change variable forwarding
23 lines
680 B
PowerShell
23 lines
680 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$packageName = 'starship'
|
|
|
|
$url_x86_64_zip = ''
|
|
$url_i686_zip = ''
|
|
$checksum_x86_64_zip = ''
|
|
$checksum_i686_zip = ''
|
|
|
|
$checksumType = 'sha256'
|
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
|
|
|
Install-ChocolateyZipPackage -PackageName "$packageName" `
|
|
-Url "$url_i686_zip" `
|
|
-Url64 "$url_x86_64_zip" `
|
|
-UnzipLocation "$toolsDir" `
|
|
-Checksum "$checksum_i686_zip" `
|
|
-Checksum64 "$checksum_x86_64_zip" `
|
|
-ChecksumType "$checksumType"
|
|
|
|
# Add to Profile
|
|
Write-Host "Add the following to the end of ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 'Invoke-Expression (&starship init powershell)'"
|