File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 11@ echo off
2+ echo this script is for build and publish mvvm demo site
3+ echo please ensure you have this directory layout
4+ echo - zkweb
5+ echo - tools
6+ echo - zkweb.demo
7+ echo - publish.bat
8+ echo .
29
310echo building project...
411cd src\ZKWeb.MVVMDemo.AspNetCore
512dotnet restore
6- dotnet build -c Release -f netcoreapp1.1
7- dotnet publish -c Release -f netcoreapp1.1 -r win10-x64
13+ dotnet build -c Release -f netcoreapp2.0
14+ dotnet publish -c Release -f netcoreapp2.0 -r win10-x64
815cd ..\..
916
1017echo building plugins...
1118cd src\ZKWeb.MVVMDemo.Console
1219dotnet restore
13- dotnet run -c Release -f netcoreapp1.1
20+ dotnet run -c Release -f netcoreapp2.0
1421cd ..\..
1522
1623echo publishing website...
17- ..\ZKWeb\Tools\WebsitePublisher.Cmd.exe -f netcoreapp1.1 -x " .*node_modules.*" -r src\ZKWeb.MVVMDemo.AspNetCore -n " zkweb.mvvm" -o " ..\..\publish"
24+ ..\ZKWeb\Tools\WebsitePublisher.Cmd.Windows\ZKWeb.Toolkits.WebsitePublisher.Cmd. exe -f netcoreapp2.0 -x " .*node_modules.*" -r src\ZKWeb.MVVMDemo.AspNetCore -n " zkweb.mvvm" -o " ..\..\publish"
1825pause
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ if [ ! -f "/usr/lib/gdiplus.dll" ]; then
1111 exit
1212fi
1313
14- if [ ! -d " ../ZKWeb/ZKWeb.Toolkits " ]; then
14+ if [ ! -d " ../ZKWeb/Tools " ]; then
1515 echo " ERROR:"
1616 echo " please download ZKWeb and put it in the same directory as ZKWeb.MVVMDemo"
1717 exit
2020echo " building project..."
2121cd src/ZKWeb.MVVMDemo.AspNetCore
2222dotnet restore
23- dotnet build -c Release -f netcoreapp1.1
24- dotnet publish -c Release -f netcoreapp1.1 -r ubuntu.16.04-x64
23+ dotnet build -c Release -f netcoreapp2.0
24+ dotnet publish -c Release -f netcoreapp2.0 -r ubuntu.16.04-x64
2525cd ../..
2626
2727echo " building plugins..."
2828cd src/ZKWeb.MVVMDemo.Console
2929dotnet restore
30- dotnet run -c Release -f netcoreapp1.1
30+ dotnet run -c Release -f netcoreapp2.0
3131cd ../..
3232
3333echo " publishing website..."
34- cd ../ZKWeb/ZKWeb.Toolkits/ZKWeb.Toolkits.WebsitePublisher.Cmd
35- dotnet restore
36- dotnet run -c Debug -f netcoreapp1.1 -- -f netcoreapp1.1 -x " .*node_modules.*" -r ../../../ZKWeb.MVVMDemo/src/ZKWeb.MVVMDemo.AspNetCore -n " publish" -o " ../../../ZKWeb.MVVMDemo"
34+ dotnet ../ZKWeb/Tools/WebsitePublisher.Cmd.NetCore/ZKWeb.Toolkits.WebsitePublisher.Cmd.dll -f netcoreapp2.0 -x " .*node_modules.*" -r " src/ZKWeb.MVVMDemo.AspNetCore" -n " zkweb.mvvm" -o " ../../publish"
You can’t perform that action at this time.
0 commit comments