Skip to content

Commit

Permalink
Update snapcraft.yaml files
Browse files Browse the repository at this point in the history
Add arm32 and arm64 binaries if the build is executed on an appropriate host

Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
  • Loading branch information
Daniel Llewellyn authored and Dani Llewellyn committed Sep 23, 2021
1 parent 4d9601d commit 53b75e8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion preview/snap/snapcraft.yaml
Expand Up @@ -61,7 +61,14 @@ parts:
echo $version > $file
fi
echo "getting powershell $version"
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$version/powershell-$version-linux-x64.tar.gz
case "$SNAPCRAFT_ARCH_TRIPLET" in
aarch64-linux-gnu)
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$version/powershell-$version-linux-arm64.tar.gz ;;
arm-linux-gnueabihf)
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$version/powershell-$version-linux-arm32.tar.gz ;;
*)
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$version/powershell-$version-linux-x64.tar.gz ;;
esac
echo "getting Third Party Notice Header"
curl -L -o thirdPartyNoticeHeader.txt https://raw.githubusercontent.com/PowerShell/PowerShell-Snap/master/assets/thirdPartyNoticeHeader.txt
mkdir -p $SNAPCRAFT_PART_INSTALL/opt/powershell
Expand Down

0 comments on commit 53b75e8

Please sign in to comment.