From d1fe9735725378dd5dd50ff4a602fcce816336cc Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Wed, 19 Jun 2024 18:49:15 -0400 Subject: [PATCH] Microsoft PowerShell: fix icu hardcoded dependencies and broken pwsh permissions https://github.com/PowerShell/PowerShell/issues/18495#issuecomment-2179538840 --- apps/Microsoft PowerShell/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/Microsoft PowerShell/install b/apps/Microsoft PowerShell/install index 2c00fae2e0..bce7a37fe7 100755 --- a/apps/Microsoft PowerShell/install +++ b/apps/Microsoft PowerShell/install @@ -2,11 +2,13 @@ version=7.4.3 rm -rf "$HOME/powershell" -install_packages libc6 libgcc1 libgssapi-krb5-2 libstdc++6 zlib1g libicu72 '|' libicu71 '|' libicu70 '|' libicu69 '|' libicu68 '|' libicu67 '|' libicu66 '|' libicu65 '|' libicu63 '|' libicu60 '|' libicu57 '|' libicu55 '|' libicu52 libssl3 '|' libssl1.1 '|' libssl1.0.2 '|' libssl1.0.0 libunwind8 || exit 1 +install_packages libc6 libgcc1 libgssapi-krb5-2 libstdc++6 zlib1g libicu-dev libssl3 '|' libssl1.1 '|' libssl1.0.2 '|' libssl1.0.0 libunwind8 || exit 1 wget https://github.com/PowerShell/PowerShell/releases/download/v${version}/powershell-${version}-linux-arm${arch}.tar.gz || exit 1 mkdir -p ~/powershell || error "Unable to create Powershell Directory!" tar -xf ./powershell-${version}-linux-arm${arch}.tar.gz -C ~/powershell || error "Unable to extract / copy Powershell to directory!" rm -f ./powershell-${version}-linux-arm${arch}.tar.gz || sudo rm -f ./powershell-${version}-linux-arm${arch}.tar.gz +# fixing broken upstream permissions https://github.com/PowerShell/PowerShell/issues/18495#issuecomment-2179538840 +chmod +x "$HOME/powershell"/* status 'Creating symlink...' sudo "$HOME/powershell/pwsh" -command 'New-Item -ItemType SymbolicLink -Path "/usr/local/bin/pwsh" -Target "$PSHOME/pwsh" -Force' || error "Unable to link Powershell to /usr/local/bin!"