Fixes command line files

This commit is contained in:
Kamron Batman 2020-05-06 22:59:54 -07:00
parent e5d25559e9
commit 5ca7652125
No known key found for this signature in database
GPG key ID: 5C9DFD15804B6BB8
3 changed files with 18 additions and 7 deletions

View file

@ -13,11 +13,20 @@ else
c=-c $2
fi
if [[ $2 ]]
if [[ $1 ]]
then
o=" -r $1-x64"
o="-r $1-x64"
else
if [[ $(uname) = "Darwin" ]]
then
o="-r osx-x64"
else
o="-r linux-x64"
fi
fi
dotnet publish ${c}${o} --self-contained=false
echo dotnet publish ${c} ${o} --self-contained=false
dotnet publish ${c} ${o} --self-contained=false
exit $?
:CMDSCRIPT
@ -30,7 +39,9 @@ IF "%~2" == "" (
)
IF "%~1" != "" (
SET o = " -r %~1-x64"
SET o = "-r %~1-x64"
) ELSE (
SET o = "-r win-x64"
)
dotnet publish %c%%o% --self-contained=false
dotnet publish %c% %o% --self-contained=false