Skip to content

Commit

Permalink
Microsoft PowerShell: fix icu hardcoded dependencies and broken pwsh …
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Jun 19, 2024
1 parent 5482d0c commit d1fe973
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/Microsoft PowerShell/install
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

Expand Down

0 comments on commit d1fe973

Please sign in to comment.