dotnet-installer/scripts/build/build_appdeps.sh

27 lines
779 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# This file encapsulates the temporary steps to build the dotnet-compile-native command successfully
# The AppDepSDK package is a temporary artifact until we have CoreRT assemblies published to Nuget
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2015-11-18 07:42:27 +00:00
source $SCRIPT_DIR/../_common.sh
export PATH=$REPOROOT/artifacts/$RID/stage0/bin:$PATH
REPO_ROOT="$SCRIPT_DIR/../.."
2015-11-18 07:42:27 +00:00
APPDEPS_PROJECT_DIR=$REPO_ROOT/src/Microsoft.DotNet.Tools.Compiler.Native/appdep
# Get Absolute Output Dir
pushd $1
OUTPUT_DIR="$(pwd)"
popd
## App Deps ##
pushd $APPDEPS_PROJECT_DIR
2015-11-18 07:42:27 +00:00
dotnet restore --packages $APPDEPS_PROJECT_DIR/packages
APPDEP_SDK=$APPDEPS_PROJECT_DIR/packages/toolchain*/*/
popd
mkdir -p $OUTPUT_DIR/appdepsdk
cp -a $APPDEP_SDK/. $OUTPUT_DIR/appdepsdk