forked from SeriaWei/ZKEACMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Publish.cmd
29 lines (28 loc) · 1.13 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
@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...
dotnet restore
cd src/ZKEACMS.WebHost
dotnet tool restore
dotnet tool run publish-zkeacms
explorer %cd%\bin\Release\PublishOutput