mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
cc.sh: use dotnet publ;ish
There is almost no difference between those two, but publish copies core libraries for running the project that might be missing if user deletes bin/obj/packages folders.
This commit is contained in:
parent
552e8346bb
commit
ae640ba6ba
1 changed files with 4 additions and 4 deletions
8
cc.sh
8
cc.sh
|
@ -41,7 +41,7 @@ if [[ ! -f "$SOLUTION" ]]; then
|
|||
fi
|
||||
|
||||
SETUP_FLAGS=(-c "$CONFIGURATION" -o "$OUT")
|
||||
BUILD_FLAGS=(--no-restore /nologo)
|
||||
BUILD_FLAGS=(--no-restore /nologo /p:LinkDuringPublish=false)
|
||||
|
||||
if [[ "$TEST" -eq 1 ]]; then
|
||||
if [[ "$CLEAN" -eq 1 ]]; then
|
||||
|
@ -50,8 +50,8 @@ if [[ "$TEST" -eq 1 ]]; then
|
|||
fi
|
||||
|
||||
dotnet restore
|
||||
dotnet build "${SETUP_FLAGS[@]}" "${BUILD_FLAGS[@]}"
|
||||
dotnet test "$TESTS_PROJECT" "${SETUP_FLAGS[@]}" "${BUILD_FLAGS[@]}" --no-build
|
||||
dotnet publish "${SETUP_FLAGS[@]}" "${BUILD_FLAGS[@]}"
|
||||
dotnet test "$TESTS_PROJECT" "${SETUP_FLAGS[@]}" --no-build "${BUILD_FLAGS[@]}"
|
||||
else
|
||||
if [[ "$CLEAN" -eq 1 ]]; then
|
||||
dotnet clean "$MAIN_PROJECT" "${SETUP_FLAGS[@]}"
|
||||
|
@ -59,7 +59,7 @@ else
|
|||
fi
|
||||
|
||||
dotnet restore "$MAIN_PROJECT"
|
||||
dotnet build "$MAIN_PROJECT" "${SETUP_FLAGS[@]}" "${BUILD_FLAGS[@]}"
|
||||
dotnet publish "$MAIN_PROJECT" "${SETUP_FLAGS[@]}" "${BUILD_FLAGS[@]}"
|
||||
fi
|
||||
|
||||
echo
|
||||
|
|
Loading…
Reference in a new issue