From be726e0267e335713493a24369c068f4dab8c8bc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 20:01:23 +0000 Subject: [PATCH] pwsh: Update to version 7.2.23 Archive version 7.4.4 --- bucket/old/pwsh/7.4.4.yml | 49 +++++++++++++++++++++++++++++++++++++++ bucket/pwsh.yml | 16 ++++++------- 2 files changed, 57 insertions(+), 8 deletions(-) create mode 100644 bucket/old/pwsh/7.4.4.yml diff --git a/bucket/old/pwsh/7.4.4.yml b/bucket/old/pwsh/7.4.4.yml new file mode 100644 index 0000000000..f1351a245a --- /dev/null +++ b/bucket/old/pwsh/7.4.4.yml @@ -0,0 +1,49 @@ +version: 7.4.4 +description: PowerShell Core. Cross-Platform task automation and configuration management framework/tool. +homepage: https://github.com/PowerShell/PowerShell +license: + identifier: MIT + url: https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt +changelog: https://github.com/PowerShell/PowerShell/releases/tag/v7.4.4 +architecture: + 64bit: + url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x64.zip + hash: 6461dd3fda39fc65e30c7642f863b9e1dabe32885043094e1d8a79dffcef1dcb + 32bit: + url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x86.zip + hash: 79f79f5615e65cf84212579eeb7d7cd9c89f2f0ff9dee24ae570561877dfdfcb + arm64: + url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-arm64.zip + hash: ca7e26f87b9ea4d1a4e5f6106a2e4506290284a0e892cc1f3e4a4227e7cd59ac +pre_install: | + Test-Persistence 'Microsoft.PowerShell_profile.ps1', 'profile.ps1' + + #### Variables + $GIST = 'https://gist.githubusercontent.com/Ash258/e143436e2f9183a650424d635b535e51/raw' + $PWSH_PATH = "$dir".Replace('\', '\\') + $INS_REG = "$dir\pwsh-context-ins.reg" + $UNINS_REG = "$dir\pwsh-context-un.reg" + + #### Downloading + $content = (New-Object System.Net.WebClient).DownloadString("$GIST/pwsh-context-ins.reg") + $content = $content.Replace('%%dir%%', $PWSH_PATH) + #### SET FILES + Out-UTF8File $INS_REG $content + $content = (New-Object System.Net.WebClient).DownloadString("$GIST/pwsh-context-un.reg") + Out-UTF8File $UNINS_REG $content + #### Append registry + regedit /s $INS_REG +pre_uninstall: | + #### Remove registry entry + regedit /s "$dir\pwsh-context-un.reg" +bin: +- - pwsh.exe + - pwsh + - -NoLogo +shortcuts: +- - pwsh.exe + - PowerShell Core + - -NoLogo +persist: +- Microsoft.PowerShell_profile.ps1 +- profile.ps1 diff --git a/bucket/pwsh.yml b/bucket/pwsh.yml index 682da514ba..80f6416676 100644 --- a/bucket/pwsh.yml +++ b/bucket/pwsh.yml @@ -1,20 +1,20 @@ -version: 7.4.4 +version: 7.2.23 description: PowerShell Core. Cross-Platform task automation and configuration management framework/tool. homepage: https://github.com/PowerShell/PowerShell license: identifier: MIT url: https://github.com/PowerShell/PowerShell/blob/master/LICENSE.txt -changelog: https://github.com/PowerShell/PowerShell/releases/tag/v7.4.4 +changelog: https://github.com/PowerShell/PowerShell/releases/tag/v7.2.23 architecture: 64bit: - url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x64.zip - hash: 6461dd3fda39fc65e30c7642f863b9e1dabe32885043094e1d8a79dffcef1dcb + url: https://github.com/PowerShell/PowerShell/releases/download/v7.2.23/PowerShell-7.2.23-win-x64.zip + hash: 1e2fb1aa11d3f8bc0daa6dc26a3b1cd047277e84e912427d3837fb2ab3695af2 32bit: - url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-x86.zip - hash: 79f79f5615e65cf84212579eeb7d7cd9c89f2f0ff9dee24ae570561877dfdfcb + url: https://github.com/PowerShell/PowerShell/releases/download/v7.2.23/PowerShell-7.2.23-win-x86.zip + hash: 0ca6084d8648472ebc13f485df89334f7bf46f8105a949590087a69d02a2d5c6 arm64: - url: https://github.com/PowerShell/PowerShell/releases/download/v7.4.4/PowerShell-7.4.4-win-arm64.zip - hash: ca7e26f87b9ea4d1a4e5f6106a2e4506290284a0e892cc1f3e4a4227e7cd59ac + url: https://github.com/PowerShell/PowerShell/releases/download/v7.2.23/PowerShell-7.2.23-win-arm64.zip + hash: 3e9d302ce98612f11cb335ce41947f94773b1983af4eef07d3c823e996e2b4d6 pre_install: | Test-Persistence 'Microsoft.PowerShell_profile.ps1', 'profile.ps1'