mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
refactor(linux): build arm64
This commit is contained in:
parent
4cfbf21c90
commit
83fc90273f
2
.github/workflows/artifacts.yml
vendored
2
.github/workflows/artifacts.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
goarch: [amd64]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
goarch: arm
|
||||
goarch: arm64
|
||||
- os: windows-latest
|
||||
goarch: 386
|
||||
- os: windows-latest
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
goarch: [amd64]
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
goarch: arm
|
||||
goarch: arm64
|
||||
- os: windows-latest
|
||||
goarch: 386
|
||||
- os: windows-latest
|
||||
|
|
|
@ -20,7 +20,7 @@ Param
|
|||
Copy-Item -Path "../../../themes" -Destination "./themes" -Recurse
|
||||
# fetch all the binaries from the version's GitHub release
|
||||
New-Item -Path "./" -Name "bin" -ItemType "directory"
|
||||
"posh-windows-amd64.exe", "posh-windows-386.exe", "posh-windows-arm64.exe", "posh-darwin-amd64", "posh-linux-amd64", "posh-linux-arm" | ForEach-Object -Process {
|
||||
"posh-windows-amd64.exe", "posh-windows-386.exe", "posh-windows-arm64.exe", "posh-darwin-amd64", "posh-linux-amd64", "posh-linux-arm64" | ForEach-Object -Process {
|
||||
$download = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$BinVersion/$_"
|
||||
Invoke-WebRequest $download -Out "./bin/$_"
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ function Get-PoshCommand {
|
|||
# this is rather hacky but there's no other way for the time being
|
||||
$arch = uname -m
|
||||
if (($arch -eq 'aarch64') -or ($arch -eq 'armv7l')) {
|
||||
return "$PSScriptRoot/bin/posh-linux-arm"
|
||||
return "$PSScriptRoot/bin/posh-linux-arm64"
|
||||
}
|
||||
return "$PSScriptRoot/bin/posh-linux-amd64"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue