1
1
# Metadata for PowerShell Core
2
- w_metadata powershell_core apps \
2
+ w_metadata powershell_core dlls \
3
3
title="PowerShell Core" \
4
4
publisher="Microsoft" \
5
5
year="2024" \
6
6
media="download" \
7
- file1="PowerShell-7.2.19 -win-x86.msi" \
8
- file2="PowerShell-7.2.19 -win-x64.msi"
7
+ file1="PowerShell-7.2.21 -win-x86.msi" \
8
+ file2="PowerShell-7.2.21 -win-x64.msi"
9
9
10
10
load_powershell_core()
11
11
{
12
12
# Uncomment below and remove win32 download elif and file when PowerShell Core v7.2 LTS goes EOL
13
13
#w_package_unsupported_win32
14
14
15
- # Derive version number from file1
16
- _load_powershell_core_regex='[0-9]+\.[0-9]+\.[0-9]+'
17
-
18
- if echo "${file1}" | grep -E -o "${_load_powershell_core_regex}" >/dev/null; then
19
- _load_powershell_core_version=$(echo "${file1}" | grep -E -o "${_load_powershell_core_regex}")
20
- fi
21
-
22
15
# Download PowerShell Core 7.2.x MSI (Latest LTS Version to support win32)
16
+ # https://github.com/PowerShell/PowerShell/releases/v7.2.21
23
17
if [ "${W_ARCH}" = "win64" ]; then
24
- # https://github.com/PowerShell/PowerShell/releases/v7.2.19
25
- w_download "https://github.com/PowerShell/PowerShell/releases/download/v${_load_powershell_core_version}/${file2}" 965e10fc77dbce6ef622f1c0fcddc03bebd2b3629f1a3253cc17a8ffc71a6522
18
+ w_download "https://github.com/PowerShell/PowerShell/releases/download/v7.2.21/PowerShell-7.2.21-win-x64.msi" 407640b11c89d66ec7892229e68b1d74b26f0e820b52da268c67fd166c2b46ad
19
+ # Disable SC2154 due to shellcheck not knowing metadata is sourced before this function is run
20
+ # shellcheck disable=SC2154
26
21
msi="${file2}"
27
22
elif [ "${W_ARCH}" = "win32" ]; then
28
- # https://github.com/PowerShell/PowerShell/releases/v7.2.19
29
- w_download "https://github.com/PowerShell/PowerShell/releases/download/v${_load_powershell_core_version}/${file1}" cbf214d41bc8be4b1ce5ba566dbfee5f335971c48231825e90af7954356ce797
23
+ w_download " https://github.com/PowerShell/PowerShell/releases/download/ v7.2.21/PowerShell-7.2.21-win-x86.msi" cdfd69f6997eabe5abdc38869eedfd90761416261bf95531300f652d0932bf0a
24
+ # shellcheck disable=SC2154
30
25
msi="${file1}"
31
26
fi
32
27
@@ -35,4 +30,4 @@ load_powershell_core()
35
30
36
31
# Install PowerShell Core using Wine's msiexec
37
32
w_try "${WINE}" msiexec ${W_OPT_UNATTENDED:+/quiet} /i "${msi}" ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
38
- }
33
+ }
0 commit comments