mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
ci: remove wsl executable from windows packages
for wsl, a manual install is required(linux install).
This commit is contained in:
parent
0247b329c1
commit
9f200a8930
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -223,8 +223,8 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z
|
||||
asset_name: posh-windows-wsl-amd64.7z
|
||||
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-amd64.7z
|
||||
asset_name: posh-windows-amd64.7z
|
||||
asset_content_type: application/octet-stream
|
||||
- name: Upload Scoop Archive Hash
|
||||
id: upload-scoop-post-install-hash
|
||||
|
@ -233,8 +233,8 @@ jobs:
|
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ needs.release.outputs.upload_url }}
|
||||
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-wsl-amd64.7z.sha256
|
||||
asset_name: posh-windows-wsl-amd64.7z.sha256
|
||||
asset_path: ${{ github.workspace }}/packages/scoop/posh-windows-amd64.7z.sha256
|
||||
asset_name: posh-windows-amd64.7z.sha256
|
||||
asset_content_type: text/plain
|
||||
inno:
|
||||
needs: [release, artifacts]
|
||||
|
|
|
@ -34,7 +34,6 @@ winget install JanDeDobbeleer.OhMyPosh
|
|||
This installs a couple of things:
|
||||
|
||||
- `oh-my-posh.exe` - Windows executable, added to your `$PATH`
|
||||
- `oh-my-posh-wsl` - Linux executable, added to your `$PATH` for use in the WSL
|
||||
- `themes` - The latest Oh My Posh themes
|
||||
|
||||
If you want to use a standard theme, you can find them in `~\AppData\Local\Programs\oh-my-posh\themes\`,
|
||||
|
@ -51,7 +50,6 @@ scoop install https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/downl
|
|||
This installs a couple of things:
|
||||
|
||||
- `oh-my-posh.exe` - Windows executable, added to your `$PATH`
|
||||
- `oh-my-posh-wsl` - Linux executable, added to your `$PATH` for use in the WSL
|
||||
- `themes` - The latest Oh My Posh themes
|
||||
|
||||
If you want to use a standard theme, you can find them in `~\scoop\apps\oh-my-posh\current\themes\`,
|
||||
|
@ -72,7 +70,6 @@ choco install oh-my-posh
|
|||
This installs a couple of things:
|
||||
|
||||
- `oh-my-posh.exe` - Windows executable, added to your `$PATH`
|
||||
- `oh-my-posh-wsl` - Linux executable, added to your `$PATH` for use in the WSL
|
||||
- `themes` - The latest Oh My Posh themes
|
||||
|
||||
If you want to use a standard theme, you can find them in `~\AppData\Local\Programs\oh-my-posh\themes\`,
|
||||
|
@ -239,7 +236,7 @@ Based on the installation method used, you can find this theme at the following
|
|||
</Tabs>
|
||||
|
||||
:::caution
|
||||
When using oh-my-posh inside the WSL, make sure to use the `oh-my-posh-wsl` executable instead.
|
||||
When using oh-my-posh inside the WSL, make sure to follow the [linux](linux) installation guide.
|
||||
:::
|
||||
|
||||
<Shells />
|
||||
|
@ -264,3 +261,4 @@ Inside the WSL, replace `~` with the following path: `/mnt/c/Users/<WINDOWSUSERN
|
|||
[powershell]: https://www.powershellgallery.com/packages/oh-my-posh
|
||||
[cc]: https://github.com/digitalcoyote
|
||||
[cc-choco]: https://github.com/digitalcoyote/chocolatey-packages/tree/master/oh-my-posh
|
||||
[linux]: https://ohmyposh.dev/docs/linux
|
||||
|
|
|
@ -12,7 +12,7 @@ New-Item -Path "." -Name "bin" -ItemType Directory
|
|||
Copy-Item -Path "../../themes" -Destination "./bin" -Recurse
|
||||
|
||||
# download the files and pack them
|
||||
@{file = "posh-windows-$Architecture.exe"; name = "oh-my-posh.exe" }, @{file = "posh-linux-$Architecture"; name = "oh-my-posh-wsl" } | ForEach-Object -Process {
|
||||
@{file = "posh-windows-$Architecture.exe"; name = "oh-my-posh.exe" } | ForEach-Object -Process {
|
||||
$download = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$($_.file)"
|
||||
Invoke-WebRequest $download -Out "./bin/$($_.name)"
|
||||
}
|
||||
|
|
|
@ -12,7 +12,6 @@ OutputBaseFilename=install
|
|||
|
||||
[Files]
|
||||
Source: "bin\oh-my-posh.exe"; DestDir: "{app}\bin"
|
||||
Source: "bin\oh-my-posh-wsl"; DestDir: "{app}\bin"
|
||||
Source: "bin\themes\*"; DestDir: "{app}\themes"
|
||||
|
||||
[Registry]
|
||||
|
|
|
@ -9,21 +9,21 @@ New-Item -Path "." -Name "package/bin" -ItemType Directory
|
|||
Copy-Item -Path "../../themes" -Destination "./package" -Recurse
|
||||
|
||||
# Download the files and pack them
|
||||
@{name = 'posh-windows-amd64.exe'; outName = 'oh-my-posh.exe' }, @{name = 'posh-linux-amd64'; outName = 'oh-my-posh-wsl' } | ForEach-Object -Process {
|
||||
@{name = 'posh-windows-amd64.exe'; outName = 'oh-my-posh.exe' } | ForEach-Object -Process {
|
||||
$download = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$($_.name)"
|
||||
Invoke-WebRequest $download -Out "./package/bin/$($_.outName)"
|
||||
}
|
||||
$compress = @{
|
||||
Path = "./package/*"
|
||||
CompressionLevel = "Fastest"
|
||||
DestinationPath = "./posh-windows-wsl-amd64.7z"
|
||||
DestinationPath = "./posh-windows-amd64.7z"
|
||||
}
|
||||
Compress-Archive @compress
|
||||
$zipHash = Get-FileHash ./posh-windows-wsl-amd64.7z -Algorithm SHA256
|
||||
$zipHash = Get-FileHash ./posh-windows-amd64.7z -Algorithm SHA256
|
||||
$content = Get-Content '.\oh-my-posh.json' -Raw
|
||||
$content = $content.Replace('<VERSION>', $Version)
|
||||
$content = $content.Replace('<HASH>', $zipHash.Hash)
|
||||
$content | Out-File -Encoding 'UTF8' './oh-my-posh.json'
|
||||
$zipHash.Hash | Out-File -Encoding 'UTF8' 'posh-windows-wsl-amd64.7z.sha256'
|
||||
$zipHash.Hash | Out-File -Encoding 'UTF8' 'posh-windows-amd64.7z.sha256'
|
||||
|
||||
Remove-Item ./package/ -Recurse
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/posh-windows-wsl-amd64.7z",
|
||||
"url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v<VERSION>/posh-windows-amd64.7z",
|
||||
"hash": "<HASH>"
|
||||
}
|
||||
},
|
||||
|
@ -23,7 +23,7 @@
|
|||
"autoupdate": {
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$version/posh-windows-wsl-amd64.7z",
|
||||
"url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$version/posh-windows-amd64.7z",
|
||||
"hash": {
|
||||
"url": "$url.sha256"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue