code-server-powershell: multi-arch

This commit is contained in:
aptalca
2020-05-18 16:50:18 -04:00
parent a9bdadcaa7
commit 605a91c528
2 changed files with 21 additions and 6 deletions
+12 -3
View File
@@ -1,10 +1,19 @@
#!/usr/bin/with-contenv bash
if [ -f "/powershell.deb" ]; then
ARCH=$(uname -m)
if [ -f "/powershell/powershell_${ARCH}.tar.gz" ]; then
echo "Installing PowerShell"
apt-get update
apt-get install -y /powershell.deb
rm /powershell.deb
apt-get install -y \
libicu60 \
libunwind8
tar xf "/powershell/powershell_${ARCH}.tar.gz" -C /powershell
rm -rf \
/powershell/powershell_x86_64.tar.gz \
/powershell/powershell_armv7l.tar.gz \
/powershell/powershell_aarch64.tar.gz
ln -s /powershell/pwsh /usr/bin/pwsh
else
echo "PowerShell already installed, skipping"
fi