Cleans up publishing/building
This commit is contained in:
parent
2347533b9c
commit
e5d25559e9
20 changed files with 62 additions and 137 deletions
36
Tools/publish.cmd
Executable file
36
Tools/publish.cmd
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
dotnet clean
|
||||
:<<"::SHELLSCRIPT"
|
||||
@ECHO OFF
|
||||
GOTO :CMDSCRIPT
|
||||
|
||||
::SHELLSCRIPT
|
||||
Tools/build-native-libraries.cmd
|
||||
|
||||
if [[ -z $2 ]]
|
||||
then
|
||||
c="-c Release"
|
||||
else
|
||||
c=-c $2
|
||||
fi
|
||||
|
||||
if [[ $2 ]]
|
||||
then
|
||||
o=" -r $1-x64"
|
||||
fi
|
||||
dotnet publish ${c}${o} --self-contained=false
|
||||
exit $?
|
||||
|
||||
:CMDSCRIPT
|
||||
Tools\build-native-libraries.cmd
|
||||
|
||||
IF "%~2" == "" (
|
||||
SET c = "-c Release"
|
||||
) ELSE (
|
||||
SET c = "-c %~2"
|
||||
)
|
||||
|
||||
IF "%~1" != "" (
|
||||
SET o = " -r %~1-x64"
|
||||
)
|
||||
|
||||
dotnet publish %c%%o% --self-contained=false
|
||||
Loading…
Add table
Add a link
Reference in a new issue