Disable SingleFilePublish on all platforms

#1544
This commit is contained in:
JustArchi 2019-12-16 20:53:29 +01:00
parent 70694a84b8
commit 07a91a7274
3 changed files with 0 additions and 22 deletions

View file

@ -77,12 +77,6 @@ jobs:
local variantArgs="/p:UseAppHost=false" local variantArgs="/p:UseAppHost=false"
else else
local variantArgs="-r $1 /p:PublishTrimmed=true" local variantArgs="-r $1 /p:PublishTrimmed=true"
# TODO: https://github.com/dotnet/sdk/issues/4022
case "$1" in
'win-'*) ;;
*) local variantArgs="$variantArgs /p:PublishSingleFile=true" ;;
esac
fi fi
dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o "out/${1}" --no-restore --nologo "/p:ASFVariant=$1" $variantArgs dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o "out/${1}" --no-restore --nologo "/p:ASFVariant=$1" $variantArgs
@ -141,11 +135,6 @@ jobs:
$variantArgs = '/p:UseAppHost=false' $variantArgs = '/p:UseAppHost=false'
} else { } else {
$variantArgs = '-r', "$variant", '/p:PublishTrimmed=true' $variantArgs = '-r', "$variant", '/p:PublishTrimmed=true'
# TODO: https://github.com/dotnet/sdk/issues/4022
if ($variant -NotLike 'win-*') {
$variantArgs += '/p:PublishSingleFile=true'
}
} }
dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -f "$targetFramework" -o "out\$variant" --no-restore --nologo "/p:ASFVariant=$variant" $variantArgs dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -f "$targetFramework" -o "out\$variant" --no-restore --nologo "/p:ASFVariant=$variant" $variantArgs

View file

@ -40,12 +40,6 @@ script:
local variantArgs="/p:UseAppHost=false" local variantArgs="/p:UseAppHost=false"
else else
local variantArgs="-r $1 /p:PublishTrimmed=true" local variantArgs="-r $1 /p:PublishTrimmed=true"
# TODO: https://github.com/dotnet/sdk/issues/4022
case "$1" in
'win-'*) ;;
*) local variantArgs="$variantArgs /p:PublishSingleFile=true" ;;
esac
fi fi
dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o "out/${1}" --no-restore --nologo "/p:ASFVariant=$1" $variantArgs dotnet publish ArchiSteamFarm -c "$CONFIGURATION" -f "$NET_CORE_VERSION" -o "out/${1}" --no-restore --nologo "/p:ASFVariant=$1" $variantArgs

View file

@ -157,11 +157,6 @@ after_test:
$variantArgs = '/p:UseAppHost=false' $variantArgs = '/p:UseAppHost=false'
} else { } else {
$variantArgs = '-r', "$variant", '/p:PublishTrimmed=true' $variantArgs = '-r', "$variant", '/p:PublishTrimmed=true'
# TODO: https://github.com/dotnet/sdk/issues/4022
if ($variant -NotLike 'win-*') {
$variantArgs += '/p:PublishSingleFile=true'
}
} }
dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -f "$targetFramework" -o "out\$variant" --no-restore --nologo "/p:ASFVariant=$variant" $variantArgs dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -f "$targetFramework" -o "out\$variant" --no-restore --nologo "/p:ASFVariant=$variant" $variantArgs