From abd9220b7b4bcd77c0d69c53b8f8604536cec9ab Mon Sep 17 00:00:00 2001 From: "Alex \"mcmonkey\" Goodwin" Date: Sat, 22 Jun 2024 17:15:12 -0700 Subject: [PATCH] add DOTNET_CLI_TELEMETRY_OPTOUT to launch scripts --- launch-linux.sh | 2 ++ launch-macos.sh | 2 ++ launch-windows.bat | 2 ++ update-linuxmac.sh | 2 ++ update-windows.bat | 2 ++ 5 files changed, 10 insertions(+) diff --git a/launch-linux.sh b/launch-linux.sh index 1fba3964..d329d6ed 100755 --- a/launch-linux.sh +++ b/launch-linux.sh @@ -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..." diff --git a/launch-macos.sh b/launch-macos.sh index 693e9e9f..f8deb734 100755 --- a/launch-macos.sh +++ b/launch-macos.sh @@ -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 diff --git a/launch-windows.bat b/launch-windows.bat index 31cda420..c30adfc3 100644 --- a/launch-windows.bat +++ b/launch-windows.bat @@ -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..." diff --git a/update-linuxmac.sh b/update-linuxmac.sh index 781a0323..2ec35532 100755 --- a/update-linuxmac.sh +++ b/update-linuxmac.sh @@ -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 diff --git a/update-windows.bat b/update-windows.bat index f9f43913..380ebb85 100644 --- a/update-windows.bat +++ b/update-windows.bat @@ -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"