-
Notifications
You must be signed in to change notification settings - Fork 868
/
Copy pathPublish.cmd
33 lines (32 loc) · 1.27 KB
/
Publish.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
@echo -----------------------------------------------------------------------------
@echo *** Welcome to use ZKEACMS ***
@echo -----------------------------------------------------------------------------
@echo This tool will help you to publish ZKEACMS
@echo License
@echo http://www.zkea.net/licenses
@echo -----------------------------------------------------------------------------
@echo Deploy
@echo http://www.zkea.net/zkeacms/document/deploy/core
@echo -----------------------------------------------------------------------------
@echo RID details
@echo https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
@echo -----------------------------------------------------------------------------
@echo Notice: Application will publish to folder(src/ZKEACMS.WebHost/bin/Release/PublishOutput)
WHERE /Q dotnet
IF %ERRORLEVEL% NEQ 0 (
@echo dotnet core sdk was not find, please install the latest sdk at first.
@pause
start https://www.microsoft.com/net/download/windows
exit
)
@echo Publishing, please wait...
WHERE /Q publish-zkeacms
IF %ERRORLEVEL% NEQ 0 (
@echo Installing publish tool, please wait.
dotnet tool install -g ZKEACMS.Publisher
) else dotnet tool update -g ZKEACMS.Publisher
dotnet restore
cd src/ZKEACMS.WebHost
publish-zkeacms
explorer %cd%\bin\Release\PublishOutput