add DOTNET_CLI_TELEMETRY_OPTOUT to launch scripts
This commit is contained in:
@@ -7,6 +7,8 @@ cd $SCRIPT_DIR
|
||||
# Add dotnet non-admin-install to path
|
||||
export PATH="$SCRIPT_DIR/.dotnet:~/.dotnet:$PATH"
|
||||
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
# Server settings option
|
||||
if [ -f ./src/bin/always_pull ]; then
|
||||
echo "Pulling latest changes..."
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
cd $SCRIPT_DIR
|
||||
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
# Building first is more reliable than running directly from src
|
||||
dotnet build src/SwarmUI.csproj --configuration Release -o ./src/bin/live_release
|
||||
# Default env configuration, gets overwritten by the C# code's settings handler
|
||||
|
||||
@@ -7,6 +7,8 @@ cd /D "%~dp0"
|
||||
rem Microsoft borked the dotnet installer/path handler, so force x64 to be read first
|
||||
set PATH=C:\Program Files\dotnet;%PATH%
|
||||
|
||||
set DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
rem Server settings option
|
||||
if exist .\src\bin\always_pull (
|
||||
echo "Pulling latest changes..."
|
||||
|
||||
@@ -7,6 +7,8 @@ cd $SCRIPT_DIR
|
||||
# Add dotnet non-admin-install to path
|
||||
export PATH="$SCRIPT_DIR/.dotnet:~/.dotnet:$PATH"
|
||||
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
# The actual update
|
||||
git pull
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ cd /D "%~dp0"
|
||||
rem Microsoft borked the dotnet installer/path handler, so force x64 to be read first
|
||||
set PATH=C:\Program Files\dotnet;%PATH%
|
||||
|
||||
set DOTNET_CLI_TELEMETRY_OPTOUT=1
|
||||
|
||||
rem For some reason Microsoft's nonsense is missing the official nuget source? So forcibly add that to be safe.
|
||||
dotnet nuget add source https://api.nuget.org/v3/index.json --name "NuGet official package source"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user