diff --git a/preview/snap/snapcraft.yaml b/preview/snap/snapcraft.yaml index 7c8bbc0..71d203a 100644 --- a/preview/snap/snapcraft.yaml +++ b/preview/snap/snapcraft.yaml @@ -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