2018-03-24 02:11:17 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2019-08-05 02:24:46 +02:00
|
|
|
CUR_DIR="$(pwd)"
|
2018-03-24 02:11:17 +01:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
echo -e "\n## Building Admin"
|
|
|
|
|
|
|
|
echo -e "\nBuilding app"
|
|
|
|
echo ".NET Core version $(dotnet --version)"
|
2018-08-01 16:32:58 +02:00
|
|
|
echo "Restore"
|
2020-07-17 14:28:31 +02:00
|
|
|
dotnet restore "$DIR/Admin.csproj"
|
2018-03-24 02:11:17 +01:00
|
|
|
echo "Clean"
|
2021-05-27 18:16:12 +02:00
|
|
|
dotnet clean "$DIR/Admin.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|
2018-03-25 06:16:26 +02:00
|
|
|
echo "Node Build"
|
2020-07-17 14:28:31 +02:00
|
|
|
cd "$DIR"
|
2022-03-03 23:53:09 +01:00
|
|
|
npm ci
|
|
|
|
npm run build
|
2020-07-17 14:28:31 +02:00
|
|
|
cd "$CUR_DIR"
|
2018-03-24 02:11:17 +01:00
|
|
|
echo "Publish"
|
2021-05-27 18:16:12 +02:00
|
|
|
dotnet publish "$DIR/Admin.csproj" -c "Release" -o "$DIR/obj/build-output/publish"
|