1
1
# Metadata for PowerShell Wrapper
2
- w_metadata powershell apps \
2
+ w_metadata powershell dlls \
3
3
title="PowerShell Wrapper For Wine" \
4
4
publisher="ProjectSynchro" \
5
5
year="2024" \
@@ -12,31 +12,38 @@ load_powershell()
12
12
{
13
13
#w_do_call powershell_core
14
14
15
- # Specify version here, and build download URLS from it.
16
- _load_powershell_version='2.1.0'
17
-
18
15
# Download PowerShell Wrapper 32bit exe
19
- w_download "https://github.com/${publisher} /powershell-wrapper-for-wine/releases/download/v${_load_powershell_version}/${file1} " 379c7252eed3039e9c10cf21a706ca35f87df5315e9501819120d845729768de
16
+ w_download "https://github.com/ProjectSynchro /powershell-wrapper-for-wine/releases/download/v2.1.0/powershell32.exe " 379c7252eed3039e9c10cf21a706ca35f87df5315e9501819120d845729768de
20
17
21
18
if [ "${W_ARCH}" = "win64" ]; then
22
19
# Download PowerShell Wrapper 64bit exe
23
- w_download "https://github.com/${publisher} /powershell-wrapper-for-wine/releases/download/v${_load_powershell_version}/${file2} " 325619aa9afa8e84123d303c76a38e5af8b359de520d4096289790265037706c
20
+ w_download "https://github.com/ProjectSynchro /powershell-wrapper-for-wine/releases/download/v2.1.0/powershell64.exe " 325619aa9afa8e84123d303c76a38e5af8b359de520d4096289790265037706c
24
21
fi
25
22
26
23
# Download PowerShell Wrapper profile.ps1
27
- w_download "https://github.com/${publisher} /powershell-wrapper-for-wine/releases/download/v${_load_powershell_version}/${file3} " 85c7d4bc526a0b427cb8fbc77cff8a43b0475b2bf7397889cbe1ab224d1579a1
24
+ w_download "https://github.com/ProjectSynchro /powershell-wrapper-for-wine/releases/download/v2.1.0/profile.ps1 " 85c7d4bc526a0b427cb8fbc77cff8a43b0475b2bf7397889cbe1ab224d1579a1
28
25
29
26
# Change directories to cache
30
27
w_try_cd "${W_CACHE}/${W_PACKAGE}"
31
28
32
29
# Install PWSH Wrapper
30
+
31
+ # Disable SC2154 due to shellcheck not knowing metadata is sourced before this function is run
32
+ # shellcheck disable=SC2154
33
33
w_try_cp_dll "${file1}" "${W_SYSTEM32_DLLS}/WindowsPowerShell/v1.0/powershell.exe"
34
34
if [ "${W_ARCH}" = "win64" ]; then
35
+ # shellcheck disable=SC2154
35
36
w_try_cp_dll "${file2}" "${W_SYSTEM64_DLLS}/WindowsPowerShell/v1.0/powershell.exe"
36
37
fi
37
38
38
39
# Install profile.ps1 for wrapper
39
- w_try cp "${file3}" "${W_PROGRAMS_UNIX}/PowerShell/7/${file3}"
40
+ if [ "${W_ARCH}" = "win64" ]; then
41
+ # shellcheck disable=SC2154
42
+ w_try cp "${file3}" "${W_PROGRAMW6432_UNIX}/PowerShell/7/${file3}"
43
+ else
44
+ # shellcheck disable=SC2154
45
+ w_try cp "${file3}" "${W_PROGRAMS_UNIX}/PowerShell/7/${file3}"
46
+ fi
40
47
41
48
w_override_dlls native powershell.exe
42
- }
49
+ }
0 commit comments