@@ -44,7 +44,7 @@ public static partial class Deployer
4444 /// <summary>表示部署器程序的目录名。</summary>
4545 public static readonly string DIRECTORY = ".deployer" ;
4646 /// <summary>表示部署器程序的文件名。</summary>
47- public static readonly string FILENAME = OperatingSystem . IsWindows ( ) ? "deployer. exe" : "deployer " ;
47+ public static readonly string FILENAME = OperatingSystem . IsWindows ( ) ? $ "Zongsoft.Upgrading.Deployer. exe" : "Zongsoft.Upgrading.Deployer " ;
4848 #endregion
4949
5050 #region 公共属性
@@ -58,15 +58,15 @@ public static partial class Deployer
5858 public static bool HasDeployment ( ) => HasDeployment ( out _ ) ;
5959 public static bool HasDeployment ( out FileInfo file )
6060 {
61- file = new FileInfo ( Path . Combine ( Application . ApplicationPath , Configurator . FileName ) ) ;
61+ file = new FileInfo ( Path . Combine ( Application . ApplicationPath , Deployment . FileName ) ) ;
6262
6363 if ( file . Exists )
6464 {
65- using var configurator = Configurator . Load ( file . FullName , false ) ;
65+ using var deployment = Deployment . Load ( file . FullName , false ) ;
6666
67- if ( configurator != null )
67+ if ( deployment != null )
6868 {
69- var filePath = Path . Combine ( configurator . Packages , ".version" ) ;
69+ var filePath = Path . Combine ( deployment . Packages , ".version" ) ;
7070
7171 if ( File . Exists ( filePath ) )
7272 {
@@ -85,18 +85,18 @@ public static bool HasDeployment(out FileInfo file)
8585 #endregion
8686
8787 /// <summary>提供部署器相关配置功能的类。</summary>
88- public sealed class Configurator : IDisposable
88+ public sealed class Deployment : IDisposable
8989 {
9090 #region 常量定义
91- internal const string FileName = ".deploy " ;
91+ internal const string FileName = ".deployment " ;
9292 #endregion
9393
9494 #region 私有变量
9595 private FileStream _stream ;
9696 #endregion
9797
9898 #region 私有构造
99- private Configurator ( FileStream stream , string manifest , string packages )
99+ private Deployment ( FileStream stream , string manifest , string packages )
100100 {
101101 _stream = stream ;
102102 this . Manifest = manifest ;
@@ -120,7 +120,7 @@ public void Dispose()
120120 #endregion
121121
122122 #region 静态方法
123- public static Configurator Load ( string path , bool exclusive )
123+ public static Deployment Load ( string path , bool exclusive )
124124 {
125125 if ( string . IsNullOrEmpty ( path ) || ! File . Exists ( path ) )
126126 return null ;
@@ -168,7 +168,7 @@ public static Configurator Load(string path, bool exclusive)
168168 stream . Dispose ( ) ;
169169 }
170170
171- return string . IsNullOrEmpty ( manifest ) || string . IsNullOrEmpty ( packages ) ? null : new Configurator ( exclusive ? stream : null , manifest , packages ) ;
171+ return string . IsNullOrEmpty ( manifest ) || string . IsNullOrEmpty ( packages ) ? null : new Deployment ( exclusive ? stream : null , manifest , packages ) ;
172172 }
173173
174174 public static string Save ( string manifest , string packages , string directory = null )
0 commit comments