add DOTNET_CLI_TELEMETRY_OPTOUT to launch scripts

This commit is contained in:
Alex "mcmonkey" Goodwin
2024-06-22 17:15:12 -07:00
parent b8a18fe21d
commit abd9220b7b
5 changed files with 10 additions and 0 deletions

View File

@@ -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..."

View File

@@ -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

View File

@@ -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..."

View File

@@ -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

View File

@@ -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"