Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update snapcraft.yaml files for arm binaries #45

Merged
merged 4 commits into from Sep 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion preview/snap/snapcraft.yaml
Expand Up @@ -61,7 +61,18 @@ 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 ;;
x86_64-linux-gnu)
curl -L -o powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v$version/powershell-$version-linux-x64.tar.gz ;;
*)
# fail because we don't have a build for the requested platform
echo "The $SNAPCRAFT_ARCH_TRIPLET platform does not have an available build. Exiting."
exit 1 ;;
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