ci: Updated the archive names for homebrew and chocolatey
This commit is contained in:
@@ -2,7 +2,7 @@ $ErrorActionPreference = 'Stop';
|
|||||||
|
|
||||||
$PackageName = 'gman'
|
$PackageName = 'gman'
|
||||||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
|
||||||
$url64 = 'https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-windows.zip'
|
$url64 = 'https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-x86_64-pc-windows-msvc.zip'
|
||||||
$checksum64 = '$hash_64'
|
$checksum64 = '$hash_64'
|
||||||
|
|
||||||
$packageArgs = @{
|
$packageArgs = @{
|
||||||
@@ -16,5 +16,5 @@ $packageArgs = @{
|
|||||||
|
|
||||||
}
|
}
|
||||||
Install-ChocolateyZipPackage @packageArgs
|
Install-ChocolateyZipPackage @packageArgs
|
||||||
$File = Get-ChildItem -File -Path $env:ChocolateyInstall\lib\$packageName\tools\ -Filter *.tar
|
$File = Get-ChildItem -File -Path $env:ChocolateyInstall\lib\$packageName\tools\ -Filter *.zip
|
||||||
Get-ChocolateyUnzip -fileFullPath $File.FullName -destination $env:ChocolateyInstall\lib\$packageName\tools\
|
Get-ChocolateyUnzip -fileFullPath $File.FullName -destination $env:ChocolateyInstall\lib\$packageName\tools\
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ class GMan < Formula
|
|||||||
desc "Universal command line credential management and injection tool"
|
desc "Universal command line credential management and injection tool"
|
||||||
homepage "https://github.com/Dark-Alex-17/gman"
|
homepage "https://github.com/Dark-Alex-17/gman"
|
||||||
if OS.mac? and Hardware::CPU.arm?
|
if OS.mac? and Hardware::CPU.arm?
|
||||||
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-macos-arm64.tar.gz"
|
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-aarch64-apple-darwin.tar.gz"
|
||||||
sha256 "$hash_mac_arm"
|
sha256 "$hash_mac_arm"
|
||||||
elsif OS.mac? and Hardware::CPU.intel?
|
elsif OS.mac? and Hardware::CPU.intel?
|
||||||
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-macos.tar.gz"
|
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-x86_64-apple-darwin.tar.gz"
|
||||||
sha256 "$hash_mac"
|
sha256 "$hash_mac"
|
||||||
else
|
else
|
||||||
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-linux-musl.tar.gz"
|
url "https://github.com/Dark-Alex-17/gman/releases/download/v$version/gman-x86_64-unknown-linux-musl.tar.gz"
|
||||||
sha256 "$hash_linux"
|
sha256 "$hash_linux"
|
||||||
end
|
end
|
||||||
version "$version"
|
version "$version"
|
||||||
|
|||||||
Reference in New Issue
Block a user