#!/usr/bin/env bash usage() { echo "Builds the NuGet packages from the binaries that were built in the Build product binaries step." echo "Usage: build-packages -BuildArch -BuildType" echo "BuildArch can be x64, x86, arm, arm64 (default is x64)" echo "BuildType can be release, checked, debug (default is debug)" echo exit 1 } initHostDistroRid() { __HostDistroRid="" if [ "$__HostOS" == "Linux" ]; then if [ -e /etc/os-release ]; then source /etc/os-release if [[ $ID == "rhel" ]]; then # remove the last version digit VERSION_ID=${VERSION_ID%.*} fi __HostDistroRid="$ID.$VERSION_ID-$__Arch" if [[ $ID == "alpine" ]]; then __HostDistroRid="linux-musl-$__Arch" fi elif [ -e /etc/redhat-release ]; then local redhatRelease=$(