Skip to content

Commit 79227a2

Browse files
committed
update publish.bat and publish_ubuntu.sh
1 parent d9164bb commit 79227a2

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

publish.bat

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
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

310
echo building project...
411
cd src\ZKWeb.MVVMDemo.AspNetCore
512
dotnet 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
815
cd ..\..
916

1017
echo building plugins...
1118
cd src\ZKWeb.MVVMDemo.Console
1219
dotnet restore
13-
dotnet run -c Release -f netcoreapp1.1
20+
dotnet run -c Release -f netcoreapp2.0
1421
cd ..\..
1522

1623
echo 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"
1825
pause

publish_ubuntu.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ ! -f "/usr/lib/gdiplus.dll" ]; then
1111
exit
1212
fi
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
@@ -20,17 +20,15 @@ fi
2020
echo "building project..."
2121
cd src/ZKWeb.MVVMDemo.AspNetCore
2222
dotnet 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
2525
cd ../..
2626

2727
echo "building plugins..."
2828
cd src/ZKWeb.MVVMDemo.Console
2929
dotnet restore
30-
dotnet run -c Release -f netcoreapp1.1
30+
dotnet run -c Release -f netcoreapp2.0
3131
cd ../..
3232

3333
echo "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"

0 commit comments

Comments
 (0)