From 4ea9f7e6ea72ba93069c1bd4b830a7a7b6b87eb5 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Thu, 27 Apr 2023 15:01:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../IRaCIS.Core.Application.xml | 20 -------------------
Install/Install.csproj | 2 +-
Install/Program.cs | 18 +++++++++++++----
3 files changed, 15 insertions(+), 25 deletions(-)
diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
index 35bf5e4d..bfb6a9a5 100644
--- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
+++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml
@@ -4440,11 +4440,6 @@
全局阅片显示类型
-
-
- 转化显示类型
-
-
默认值
@@ -4700,11 +4695,6 @@
全局阅片显示类型
-
-
- 转化显示类型
-
-
默认值
@@ -5025,11 +5015,6 @@
全局阅片显示类型
-
-
- 转化显示类型
-
-
默认值
@@ -5175,11 +5160,6 @@
全局阅片显示类型
-
-
- 转化显示类型
-
-
默认值
diff --git a/Install/Install.csproj b/Install/Install.csproj
index 55969b0c..bd46bf2f 100644
--- a/Install/Install.csproj
+++ b/Install/Install.csproj
@@ -1,4 +1,4 @@
-
+
Exe
diff --git a/Install/Program.cs b/Install/Program.cs
index 677f7b5f..1914ceab 100644
--- a/Install/Program.cs
+++ b/Install/Program.cs
@@ -8,22 +8,32 @@ try
// 创建一个SSH客户端实例
using (var client = new SshClient("123.56.94.154", "Administrator", "WHxckj2019"))
{
-
-
// 连接到远程服务器
client.Connect();
//&& .\\IRaCIS_Vue_Web.bat
//&& ./IRaCIS_Vue_Web.bat
- string command = "cd C:\\Users\\Administrator\\bat && .\\IRaCIS_Vue_Web.bat ";
+ string command = $@"cd C:\Users\Administrator\VueSourceCode && npm i && npm run build";
using (var cmd = client.CreateCommand(command))
{
+
+ Console.WriteLine("开始执行");
+
+ Console.WriteLine(command);
+
+
var output = cmd.Execute();
-
Console.WriteLine(output);
+
+
+ var output3 = cmd.Execute($@"xcopy /Y /Q ""C:\Users\Administrator\VueSourceCode\dist\index.html"" ""D:\Develop\PublishSite\IRaCIS.Vue.Web\dist\""");
+
+ Console.WriteLine(output);
+
+ Console.WriteLine("发布成功");
}