Skip to content

Commit 4231823

Browse files
powershell_core.verb: Update powershell core verb to match upstream winetricks.
1 parent 9cbd648 commit 4231823

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

verbs/powershell_core.verb

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,27 @@
11
# Metadata for PowerShell Core
2-
w_metadata powershell_core apps \
2+
w_metadata powershell_core dlls \
33
title="PowerShell Core" \
44
publisher="Microsoft" \
55
year="2024" \
66
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"
99

1010
load_powershell_core()
1111
{
1212
# Uncomment below and remove win32 download elif and file when PowerShell Core v7.2 LTS goes EOL
1313
#w_package_unsupported_win32
1414

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-
2215
# Download PowerShell Core 7.2.x MSI (Latest LTS Version to support win32)
16+
# https://github.com/PowerShell/PowerShell/releases/v7.2.21
2317
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
2621
msi="${file2}"
2722
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
3025
msi="${file1}"
3126
fi
3227

@@ -35,4 +30,4 @@ load_powershell_core()
3530

3631
# Install PowerShell Core using Wine's msiexec
3732
w_try "${WINE}" msiexec ${W_OPT_UNATTENDED:+/quiet} /i "${msi}" ENABLE_PSREMOTING=1 REGISTER_MANIFEST=1
38-
}
33+
}

0 commit comments

Comments
 (0)