From 0abd2731545068b5833eb0e52c694ef87492b41f Mon Sep 17 00:00:00 2001 From: meelstorm <8780022+TesAnti@users.noreply.github.com> Date: Fri, 19 Sep 2025 12:15:11 +0200 Subject: [PATCH] version 1.0.1 --- .../Form1.Designer.cs | 14 ++++++++++ VisionBuilder.UI.Windows.Test/Form1.cs | 1 + .../Installer/uno.bat | 26 +++++++++++++++++++ .../VisionBuilder.UI.Windows.Uno.csproj | 15 +++++++++++ 4 files changed, 56 insertions(+) create mode 100644 VisionBuilder.UI.Windows.Test/Installer/uno.bat diff --git a/VisionBuilder.UI.Windows.Test/Form1.Designer.cs b/VisionBuilder.UI.Windows.Test/Form1.Designer.cs index f3e02d9..958fb21 100644 --- a/VisionBuilder.UI.Windows.Test/Form1.Designer.cs +++ b/VisionBuilder.UI.Windows.Test/Form1.Designer.cs @@ -35,6 +35,7 @@ singleCameraControl1 = new VisionBuilder.UI.Windows.Components.SingleCameraControl(); btnTestMode = new MaterialSkin.Controls.MaterialRaisedButton(); flowLayoutPanel1 = new FlowLayoutPanel(); + lblVersion = new Label(); flowLayoutPanel1.SuspendLayout(); SuspendLayout(); // @@ -141,11 +142,23 @@ flowLayoutPanel1.Size = new Size(728, 80); flowLayoutPanel1.TabIndex = 12; // + // lblVersion + // + lblVersion.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; + lblVersion.BackColor = Color.Transparent; + lblVersion.Location = new Point(1768, 1056); + lblVersion.Name = "lblVersion"; + lblVersion.Size = new Size(148, 23); + lblVersion.TabIndex = 13; + lblVersion.Text = "Version 0.0.0.0"; + lblVersion.TextAlign = ContentAlignment.TopRight; + // // Form1 // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1920, 1080); + Controls.Add(lblVersion); Controls.Add(flowLayoutPanel1); Controls.Add(singleCameraControl1); Controls.Add(materialDivider1); @@ -165,5 +178,6 @@ private Components.SingleCameraControl singleCameraControl1; private MaterialSkin.Controls.MaterialRaisedButton btnTestMode; private FlowLayoutPanel flowLayoutPanel1; + private Label lblVersion; } } diff --git a/VisionBuilder.UI.Windows.Test/Form1.cs b/VisionBuilder.UI.Windows.Test/Form1.cs index 8481bb2..b0ff42e 100644 --- a/VisionBuilder.UI.Windows.Test/Form1.cs +++ b/VisionBuilder.UI.Windows.Test/Form1.cs @@ -26,6 +26,7 @@ namespace VisionBuilder.UI.Windows.Test singleCameraControl1.SetViewModel(mainWindowVm.SingleCameraVms[0]); Load += Form1_Load; _mainWindowVm.PropertyChanged += _mainWindowVm_PropertyChanged; + lblVersion.Text = $"v{Application.ProductVersion.Split('+')[0]}"; } diff --git a/VisionBuilder.UI.Windows.Test/Installer/uno.bat b/VisionBuilder.UI.Windows.Test/Installer/uno.bat new file mode 100644 index 0000000..0578447 --- /dev/null +++ b/VisionBuilder.UI.Windows.Test/Installer/uno.bat @@ -0,0 +1,26 @@ +@echo off +setlocal + +rem --- resolve absolute path of DLL --- +set "dll=..\bin\Debug\net8.0-windows\VisionBuilder.UI.Windows.Uno.dll" +for %%I in ("%dll%") do set "dll=%%~fI" + +rem --- get version from DLL --- +for /f "tokens=2 delims==" %%v in ('wmic datafile where "name='%dll:\=\\%'" get Version /value ^| find "="') do set "ver=%%v" + +rem --- cut off last part (keep only major.minor.build) --- +for /f "tokens=1-3 delims=." %%a in ("%ver%") do set "ver=%%a.%%b.%%c" + +echo Found version: %ver% + +rem --- make sure output dir exists --- +if not exist Output mkdir Output + +rem --- build 7z-SFX --- +set "src=..\bin\Debug\net8.0-windows" +set "out=Output\UNO%ver%.exe" + +7z a -sfx "%out%" "%src%\*" + +echo Done: %out% +endlocal \ No newline at end of file diff --git a/VisionBuilder.UI.Windows.Test/VisionBuilder.UI.Windows.Uno.csproj b/VisionBuilder.UI.Windows.Test/VisionBuilder.UI.Windows.Uno.csproj index 72efc3f..ff75693 100644 --- a/VisionBuilder.UI.Windows.Test/VisionBuilder.UI.Windows.Uno.csproj +++ b/VisionBuilder.UI.Windows.Test/VisionBuilder.UI.Windows.Uno.csproj @@ -7,8 +7,11 @@ true enable Inspectron icon-512.ico + false + 1.0.1 + @@ -40,4 +43,16 @@ + + + + + + + + + + + + \ No newline at end of file