maxconn
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
1.0.15
|
||||
1.0.16
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
<LangVersion>7.3</LangVersion>
|
||||
<RootNamespace>MonsterMonitor</RootNamespace>
|
||||
<AssemblyName>MonsterMonitor</AssemblyName>
|
||||
<AssemblyVersion>1.0.15</AssemblyVersion>
|
||||
<Version>1.0.15</Version>
|
||||
<FileVersion>1.0.15</FileVersion>
|
||||
<InformationalVersion>1.0.15</InformationalVersion>
|
||||
<AssemblyVersion>1.0.16</AssemblyVersion>
|
||||
<Version>1.0.16</Version>
|
||||
<FileVersion>1.0.16</FileVersion>
|
||||
<InformationalVersion>1.0.16</InformationalVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Costura.Fody" Version="6.0.0">
|
||||
|
||||
@@ -66,8 +66,8 @@ namespace MonsterMonitor.Services
|
||||
return;
|
||||
}
|
||||
|
||||
var tempRoot = Path.Combine(Path.GetTempPath(), "MonsterMonitorUpdate");
|
||||
var packageDir = Path.Combine(tempRoot, latestVersion.ToString());
|
||||
var appDir = AppDomain.CurrentDomain.BaseDirectory;
|
||||
var packageDir = Path.Combine(appDir, "update", latestVersion.ToString());
|
||||
var packageZip = Path.Combine(packageDir, "update.zip");
|
||||
var extractDir = Path.Combine(packageDir, "extracted");
|
||||
Directory.CreateDirectory(packageDir);
|
||||
@@ -83,7 +83,6 @@ namespace MonsterMonitor.Services
|
||||
ZipFile.ExtractToDirectory(packageZip, extractDir);
|
||||
_log.Info("Архив обновления распакован.");
|
||||
|
||||
var appDir = AppDomain.CurrentDomain.BaseDirectory;
|
||||
var exePath = Application.ExecutablePath;
|
||||
var updaterBat = Path.Combine(packageDir, "apply_update.bat");
|
||||
File.WriteAllText(updaterBat, BuildUpdaterScript(appDir, extractDir, exePath), Encoding.ASCII);
|
||||
|
||||
Reference in New Issue
Block a user