mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-13 12:17:26 -08:00
fix(windows): respect flag lengths
This commit is contained in:
parent
221cd7bad2
commit
ddd4ecafc9
6
.github/workflows/microsoft_store.yml
vendored
6
.github/workflows/microsoft_store.yml
vendored
|
@ -32,21 +32,21 @@ jobs:
|
|||
"packageUrl":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v${{ github.event.inputs.version }}/install-amd64.exe",
|
||||
"languages":["en"],
|
||||
"architectures":["X64"],
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=winstore",
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=ws",
|
||||
"isSilentInstall":false
|
||||
},
|
||||
{
|
||||
"packageUrl":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v${{ github.event.inputs.version }}/install-arm64.exe",
|
||||
"languages":["en"],
|
||||
"architectures":["Arm64"],
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=winstore",
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=ws",
|
||||
"isSilentInstall":false
|
||||
},
|
||||
{
|
||||
"packageUrl":"https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v${{ github.event.inputs.version }}/install-386.exe",
|
||||
"languages":["en"],
|
||||
"architectures":["X86"],
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=winstore",
|
||||
"installerParameters":"/VERYSILENT /CURRENTUSER /INSTALLER=ws",
|
||||
"isSilentInstall":false
|
||||
}
|
||||
]
|
||||
|
|
|
@ -59,7 +59,7 @@ func getLatestVersion(env platform.Environment) (string, error) {
|
|||
// The upgrade check is only performed every other week.
|
||||
func Notice(env platform.Environment) (string, bool) {
|
||||
// never validate when we install using the Windows Store
|
||||
if env.Getenv("POSH_INSTALLER") == "winstore" {
|
||||
if env.Getenv("POSH_INSTALLER") == "ws" {
|
||||
return "", false
|
||||
}
|
||||
// do not check when last validation was < 1 week ago
|
||||
|
|
|
@ -28,7 +28,7 @@ func TestCanUpgrade(t *testing.T) {
|
|||
{Case: "Outdated Darwin", Expected: true, CurrentVersion: "3.0.0", LatestVersion: "v3.0.1", GOOS: platform.DARWIN},
|
||||
{Case: "Cached", Cache: true},
|
||||
{Case: "Error", Error: fmt.Errorf("error")},
|
||||
{Case: "Windows Store", Installer: "winstore"},
|
||||
{Case: "Windows Store", Installer: "ws"},
|
||||
}
|
||||
|
||||
for _, tc := range cases {
|
||||
|
|
Loading…
Reference in a new issue