Pubblicazione update con

- fix missing dir IOB-MAN
- fix kill TailBlazer in update
This commit is contained in:
Samuele E. Locatelli
2025-07-19 15:34:26 +02:00
parent dd094d7734
commit b83dafde2c
4 changed files with 19 additions and 8 deletions
-1
View File
@@ -46,7 +46,6 @@ variables:
Write-Output $resoconto;
echo "Replace completati"
# helper copia script verso cartella di rete S:\ delle cartelle bin
.ReplicaZ: &ReplicaZ
- |
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
<Version>1.2.2504.0316</Version>
<Version>1.2.2507.1915</Version>
<Configurations>Debug;Release;DEBUG_Local;DEBUG_remote</Configurations>
</PropertyGroup>
<ItemGroup>
@@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<ApplicationRevision>0316</ApplicationRevision>
<ApplicationVersion>1.2.2504.0316</ApplicationVersion>
<ApplicationRevision>1915</ApplicationRevision>
<ApplicationVersion>1.2.2507.1915</ApplicationVersion>
<BootstrapperEnabled>True</BootstrapperEnabled>
<Configuration>Release</Configuration>
<CreateWebPageOnPublish>True</CreateWebPageOnPublish>
@@ -145,11 +145,11 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.NetCore.DesktopRuntime.8.0.x64">
<Install>true</Install>
<ProductName>.NET Desktop Runtime 8.0.14 (x64)</ProductName>
<ProductName>Runtime di .NET desktop 8.0.15 (x64)</ProductName>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.NetCore.DesktopRuntime.8.0.x86">
<Install>true</Install>
<ProductName>.NET Desktop Runtime 8.0.14 (x86)</ProductName>
<ProductName>Runtime di .NET desktop 8.0.15 (x86)</ProductName>
</BootstrapperPackage>
</ItemGroup>
</Project>
+14 -2
View File
@@ -1100,7 +1100,7 @@ namespace EgwControlCenter.Core
{
int closeWaitTime = waitForExitMsec * 8;
// se è MAN --> aspetto + a lungo...
if(nomeProc.Contains("IOB-MAN"))
if (nomeProc.Contains("IOB-MAN"))
{
closeWaitTime = closeWaitTime * 4;
}
@@ -1203,6 +1203,14 @@ namespace EgwControlCenter.Core
{
string tempZip = Path.Combine(tempDir, "FULL", reqApp.CodApp);
// step 0: inserisce i file semaforo di segnalazione update in corso
string manDir = Path.GetDirectoryName(updFilePath) ?? "";
if (!string.IsNullOrEmpty(manDir))
{
if (!Directory.Exists(manDir))
{
Directory.CreateDirectory(manDir);
}
}
using (FileStream fs = File.Create(updFilePath))
{
// File is created and access is released when the using block ends
@@ -1221,7 +1229,11 @@ namespace EgwControlCenter.Core
CopyDirectory(srcDir, destDir);
// step 2: kill processi
// step 2a: kill log...
ForceKillByName("TailBlazer");
ForceKillByName("Tail Blazer");
// step 2b: kill processi
ForceKillByName(reqApp.CodApp);
// step 3: backup + zip intera folder applicativo