Add missing arguments to run.sh
This commit is contained in:
parent
6d4e34691c
commit
38fa399c90
18
run.sh
18
run.sh
|
|
@ -18,6 +18,7 @@ repo_path="$DIR"
|
||||||
channel=''
|
channel=''
|
||||||
tools_source=''
|
tools_source=''
|
||||||
package_version_props_url=''
|
package_version_props_url=''
|
||||||
|
asset_root_url=''
|
||||||
access_token_suffix=''
|
access_token_suffix=''
|
||||||
restore_sources=''
|
restore_sources=''
|
||||||
msbuild_args=''
|
msbuild_args=''
|
||||||
|
|
@ -186,6 +187,11 @@ while [[ $# -gt 0 ]]; do
|
||||||
restore_sources="${1:-}"
|
restore_sources="${1:-}"
|
||||||
[ -z "$restore_sources" ] && __usage
|
[ -z "$restore_sources" ] && __usage
|
||||||
;;
|
;;
|
||||||
|
--asset-root-url|-AssetRootUrl)
|
||||||
|
shift
|
||||||
|
asset_root_url="${1:-}"
|
||||||
|
[ -z "$asset_root_url" ] && __usage
|
||||||
|
;;
|
||||||
-u|--update|-Update)
|
-u|--update|-Update)
|
||||||
update=true
|
update=true
|
||||||
;;
|
;;
|
||||||
|
|
@ -233,7 +239,7 @@ if [ -f "$config_file" ]; then
|
||||||
[ ! -z "${config_tools_source:-}" ] && tools_source="$config_tools_source"
|
[ ! -z "${config_tools_source:-}" ] && tools_source="$config_tools_source"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$package_version_props_url" ]; then
|
if [ ! -z "$package_version_props_url" ]; then
|
||||||
intermediate_dir="$repo_path/obj"
|
intermediate_dir="$repo_path/obj"
|
||||||
props_file_path="$intermediate_dir/external-dependencies.props"
|
props_file_path="$intermediate_dir/external-dependencies.props"
|
||||||
mkdir -p "$intermediate_dir"
|
mkdir -p "$intermediate_dir"
|
||||||
|
|
@ -241,10 +247,18 @@ if [ "$package_version_props_url" ]; then
|
||||||
msbuild_args+="-p:DotNetPackageVersionPropsPath=\"$props_file_path\" "
|
msbuild_args+="-p:DotNetPackageVersionPropsPath=\"$props_file_path\" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$restore_sources" ]; then
|
if [ ! -z "$restore_sources" ]; then
|
||||||
msbuild_args+="-p:DotNetAdditionalRestoreSources=\"$restore_sources\" "
|
msbuild_args+="-p:DotNetAdditionalRestoreSources=\"$restore_sources\" "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$asset_root_url" ]; then
|
||||||
|
msbuild_args+="-p:DotNetAssetRootUrl=\"$asset_root_url\" "
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -z "$asset_root_url" ]; then
|
||||||
|
msbuild_args+="-p:DotNetAssetRootAccessTokenSuffix=\"$access_token_suffix\" "
|
||||||
|
fi
|
||||||
|
|
||||||
[ -z "$channel" ] && channel='dev'
|
[ -z "$channel" ] && channel='dev'
|
||||||
[ -z "$tools_source" ] && tools_source='https://aspnetcore.blob.core.windows.net/buildtools'
|
[ -z "$tools_source" ] && tools_source='https://aspnetcore.blob.core.windows.net/buildtools'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue