diff --git a/.github/workflows/microsoft_store.yml b/.github/workflows/microsoft_store.yml index 19f116bc..d8e95996 100644 --- a/.github/workflows/microsoft_store.yml +++ b/.github/workflows/microsoft_store.yml @@ -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 } ] diff --git a/src/upgrade/notice.go b/src/upgrade/notice.go index 32af9872..461cfa41 100644 --- a/src/upgrade/notice.go +++ b/src/upgrade/notice.go @@ -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 diff --git a/src/upgrade/notice_test.go b/src/upgrade/notice_test.go index bc15bea3..e9efa142 100644 --- a/src/upgrade/notice_test.go +++ b/src/upgrade/notice_test.go @@ -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 {