diff --git a/NKC_WF/site/UpdMan.aspx.cs b/NKC_WF/site/UpdMan.aspx.cs
index 9e9e474..97b1e6d 100644
--- a/NKC_WF/site/UpdMan.aspx.cs
+++ b/NKC_WF/site/UpdMan.aspx.cs
@@ -54,8 +54,12 @@ namespace NKC_WF.site
{
int done = 0;
// scarico TUTTI...
- done += UpdateMan.obj.downloadLatest(updateUrl("NKC"), localDownloadPath("NKC"), "NKC");
+ done += updManAuth.downloadLatest(updateUrlAuth("NKC"), localDownloadPath("NKC"), "NKC");
done += UpdateMan.obj.downloadLatest(updateUrl("ZCODE"), localDownloadPath("ZCODE"), "ZCODE");
+
+ // versione IIS
+ //done += UpdateMan.obj.downloadLatest(updateUrl("NKC"), localDownloadPath("NKC"), "NKC");
+ //done += UpdateMan.obj.downloadLatest(updateUrl("ZCODE"), localDownloadPath("ZCODE"), "ZCODE");
stopWatch.Stop();
// calcolo elapsed time come TimeSpan value.
TimeSpan ts = stopWatch.Elapsed;
@@ -74,12 +78,15 @@ namespace NKC_WF.site
lblOut.Text = resultsMsg;
}
- public string Version(object package)
+ public string Version(object package, object authUrl)
{
- string answ = "a.b.c.d";
UpdateInfoEventArgs updArgs = new UpdateInfoEventArgs();
- // Recupero info ADM...
- updArgs = UpdateMan.obj.getUpdateInfo(updateUrl(package.ToString()));
+ string answ = "a.b.c.d";
+ bool isAuth = false;
+ bool.TryParse($"{authUrl}", out isAuth);
+ string remoteUrl = isAuth ? updateUrlAuth($"{package}") : updateUrl($"{package}");
+ // Recupero info...
+ updArgs = UpdateMan.obj.getUpdateInfo(remoteUrl);
if (updArgs.IsUpdateAvailable)
{
answ = updArgs.CurrentVersion.ToString();
@@ -87,6 +94,11 @@ namespace NKC_WF.site
return answ;
}
+ ///
+ /// Controller versioni e download autenticato
+ ///
+ protected UpdateMan updManAuth = new UpdateMan("SWDownloader", "viaD@nte16");
+
///
/// URLK stringa di UPDATE...
///
@@ -94,7 +106,13 @@ namespace NKC_WF.site
{
return string.Format("http://seriate.steamware.net:8083/SWS/{0}/{1}/manifest.xml", package, memLayer.ML.CRS("appVers"));
}
-
+ ///
+ /// URL stringa di UPDATE su area che richiede Auth (nexus.steamware.net)...
+ ///
+ protected string updateUrlAuth(string package)
+ {
+ return string.Format("http://nexus.steamware.net/repository/SWS/{0}/{1}/LAST/{0}/{0}-.xml", package, memLayer.ML.CRS("appVers"));
+ }
///
/// Path locale dove scaricare gli installer
///
diff --git a/NKC_WF/site/UpdMan.aspx.designer.cs b/NKC_WF/site/UpdMan.aspx.designer.cs
index 9a21335..2163659 100644
--- a/NKC_WF/site/UpdMan.aspx.designer.cs
+++ b/NKC_WF/site/UpdMan.aspx.designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
-//
-// Codice generato da uno strumento.
+//
+// This code was generated by a tool.
//
-// Le modifiche a questo file possono causare un comportamento non corretto e verranno perse se
-// il codice viene rigenerato.
-//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
//------------------------------------------------------------------------------
namespace NKC_WF.site
@@ -15,56 +15,56 @@ namespace NKC_WF.site
{
///
- /// Controllo lbtDownloadAll.
+ /// lbtDownloadAll control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtDownloadAll;
///
- /// Controllo lbtDownloadNKC.
+ /// lbtDownloadNKC control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtDownloadNKC;
///
- /// Controllo lbtDownloadZCode.
+ /// lbtDownloadZCode control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.LinkButton lbtDownloadZCode;
///
- /// Controllo hlLPA.
+ /// hlLPA control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.HyperLink hlLPA;
///
- /// Controllo UpdateProgressDisplay.
+ /// UpdateProgressDisplay control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.UpdateProgress UpdateProgressDisplay;
///
- /// Controllo lblOut.
+ /// lblOut control.
///
///
- /// Campo generato automaticamente.
- /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label lblOut;
}
diff --git a/VersGen/ChangeLog.html b/VersGen/ChangeLog.html
index 94bdf5b..4446dbf 100644
--- a/VersGen/ChangeLog.html
+++ b/VersGen/ChangeLog.html
@@ -8,6 +8,24 @@
Last Changes:
{{LAST-CHANGES}}
+
+ v.2.0.* →
+
+
Multi machine setup (NE01/NE02)
+
+
+
+ v.1.3.* →
+
+
DXF Testing
+
+
+
+ v.1.0.* →
+
+
Production Ready
+
+
v.11.* →
diff --git a/VersGen/VersGen.csproj b/VersGen/VersGen.csproj
index 6e3dd62..fbd53ea 100644
--- a/VersGen/VersGen.csproj
+++ b/VersGen/VersGen.csproj
@@ -55,6 +55,9 @@
Always
+
+ Always
+ Always
diff --git a/VersGen/manifest.IIS.xml b/VersGen/manifest.IIS.xml
new file mode 100644
index 0000000..dd7eb83
--- /dev/null
+++ b/VersGen/manifest.IIS.xml
@@ -0,0 +1,7 @@
+
+
+ 0.0.0.0
+ http://seriate.steamware.net:8083/SWS/NKC/{{BRANCHNAME}}/{{PACKNAME}}.zip
+ http://seriate.steamware.net:8083/SWS/NKC/{{BRANCHNAME}}/ChangeLog.html
+ false
+
\ No newline at end of file
diff --git a/VersGen/manifest.xml b/VersGen/manifest.xml
index dd7eb83..a37b079 100644
--- a/VersGen/manifest.xml
+++ b/VersGen/manifest.xml
@@ -1,7 +1,7 @@
- 0.0.0.0
- http://seriate.steamware.net:8083/SWS/NKC/{{BRANCHNAME}}/{{PACKNAME}}.zip
- http://seriate.steamware.net:8083/SWS/NKC/{{BRANCHNAME}}/ChangeLog.html
+ {{VERS}}
+ http://nexus.steamware.net/repository/SWS/NKC/{{BRANCHNAME}}/ARCHIVE/{{PACKNAME}}/{{VERS}}/{{PACKNAME}}-{{VERS}}.zip
+ http://nexus.steamware.net/repository/SWS/NKC/{{BRANCHNAME}}/LAST/{{PACKNAME}}/{{PACKNAME}}-.htmlfalse
\ No newline at end of file