mkdir -p ./publish rm -rf ./publish/*
cd ./dvs-main
pnpm install pnpm build --outDir "../publish/console/"
cd ../dvs-ffp
yarn yarn build --dest "../publish/console/child/dvs-ffp/"
cd ../dvs-base
yarn yarn build --dest "../publish/console/child/dvs-base/"
cd ../dvs-village
yarn yarn build --dest "../publish/console/child/dvs-village/"
cd ../dvs-cons
yarn yarn build --dest "../publish/console/child/dvs-cons/"
cd ../dvs-facility
yarn yarn build --dest "../publish/console/child/dvs-facility/"
cd ../dvs-company
yarn yarn build --dest "../publish/console/child/dvs-company/"
cd ../dvs-collect
yarn yarn build --dest "../publish/console/child/dvs-collect/"
cd ../dvs-monitor
yarn yarn build --dest "../publish/console/child/dvs-monitor/"
mkdir -p ./publish rm -rf ./publish/*
cd ./dvs-main
pnpm install
pnpm build --outDir "../publish/console/"
echo "dvs-main 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
( cd ../dvs-ffp;
yarn;
yarn build --dest "../publish/console/child/dvs-ffp/";
echo "dvs-ffp 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
) &
( cd ../dvs-base;
yarn ;
yarn build --dest "../publish/console/child/dvs-base/";
echo "dvs-base 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
) &
wait
加入了打印时间的
mkdir -p ./publish
rm -rf ./publish/*
cd ./dvs-main
pnpm install
pnpm build --outDir "../publish/console/"
echo "dvs-main 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-ffp
yarn
yarn build --dest "../publish/console/child/dvs-ffp/"
echo "dvs-ffp 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-base
yarn
yarn build --dest "../publish/console/child/dvs-base/"
echo "dvs-base 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-village
yarn
yarn build --dest "../publish/console/child/dvs-village/"
echo "dvs-village 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-cons
yarn
yarn build --dest "../publish/console/child/dvs-cons/"
echo "dvs-cons 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-facility
yarn
yarn build --dest "../publish/console/child/dvs-facility/"
echo "dvs-facility 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-company
yarn
yarn build --dest "../publish/console/child/dvs-company/"
echo "dvs-company 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-collect
yarn
yarn build --dest "../publish/console/child/dvs-collect/"
echo "dvs-collect 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ../dvs-monitor
yarn
yarn build --dest "../publish/console/child/dvs-monitor/"
echo "dvs-monitor 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
后端DEV
mkdir -p ./publish
rm -rf ./publish/*
dotnet publish ./Services/Basic/DVS.Basic.Api/DVS.Basic.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-basic --no-self-contained
echo "dvs-Basic 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
dotnet publish ./Services/FFP/DVS.FFP.Api/DVS.FFP.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-ffp --no-self-contained
echo "dvs-FFP 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
dotnet publish ./Services/Village/DVS.Village.Api/DVS.Village.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-village --no-self-contained
echo "dvs-Village 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
dotnet publish ./Services/Dynamic/DVS.Dynamic.Api/DVS.Dynamic.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-dynamic --no-self-contained
echo "dvs-Dynamic 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
# dotnet publish ./Services/CustomForm/DVS.CustomForm.Api/DVS.CustomForm.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-customform --no-self-contained
dotnet publish ./Services/GIS/DVS.GIS.Api/DVS.GIS.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-gis --no-self-contained
echo "dvs-GIS 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
dotnet publish ./Services/SystemService/DVS.SystemService/DVS.SystemService.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-systemservice --no-self-contained
echo "dvs-SystemService 编译";
echo $(date '+%Y-%m-%d %H:%M:%S');
cd ./publish/
find . -name "appsettings.json" -exec rm -rf {} \;
find . -name "appsettings.Development.json" -exec rm -rf {} \;
后端加入打印时间
mkdir -p ./publish
rm -rf ./publish/*
dotnet publish ./Services/Basic/DVS.Basic.Api/DVS.Basic.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-basic --no-self-contained
dotnet publish ./Services/FFP/DVS.FFP.Api/DVS.FFP.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-ffp --no-self-contained
dotnet publish ./Services/Village/DVS.Village.Api/DVS.Village.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-village --no-self-contained
dotnet publish ./Services/Dynamic/DVS.Dynamic.Api/DVS.Dynamic.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-dynamic --no-self-contained
# dotnet publish ./Services/CustomForm/DVS.CustomForm.Api/DVS.CustomForm.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-customform --no-self-contained
dotnet publish ./Services/GIS/DVS.GIS.Api/DVS.GIS.Api.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-gis --no-self-contained
dotnet publish ./Services/SystemService/DVS.SystemService/DVS.SystemService.csproj -f net6.0 -r linux-arm64 -o ./publish/dvs-systemservice --no-self-contained
cd ./publish/
find . -name "appsettings.json" -exec rm -rf {} \;
find . -name "appsettings.Development.json" -exec rm -rf {} \;
11月21日
mkdir -p ./publish
rm -rf ./publish/*
npm config set registry https://registry.npmmirror.com/
cd ./dvs-main
pnpm install
pnpm build --outDir "../publish/console/"
cd ../dvs-ffp
yarn
yarn build --dest "../publish/console/child/dvs-ffp/"
cd ../dvs-base
yarn
yarn build --dest "../publish/console/child/dvs-base/"
cd ../dvs-village
yarn
yarn build --dest "../publish/console/child/dvs-village/"
cd ../dvs-cons
yarn
yarn build --dest "../publish/console/child/dvs-cons/"
cd ../dvs-facility
yarn
yarn build --dest "../publish/console/child/dvs-facility/"
cd ../dvs-company
yarn
yarn build --dest "../publish/console/child/dvs-company/"
cd ../dvs-gis
yarn
yarn build --dest "../publish/console/child/dvs-gis/"
cd ../dvs-collect
yarn
yarn build --dest "../publish/console/child/dvs-collect/"
cd ../dvs-monitor
yarn
yarn build --dest "../publish/console/child/dvs-monitor/"
cd ../dvs-chat
pnpm install && pnpm build --outDir "../publish/dvschat/"