version 1.0.1
This commit is contained in:
14
VisionBuilder.UI.Windows.Test/Form1.Designer.cs
generated
14
VisionBuilder.UI.Windows.Test/Form1.Designer.cs
generated
@@ -35,6 +35,7 @@
|
|||||||
singleCameraControl1 = new VisionBuilder.UI.Windows.Components.SingleCameraControl();
|
singleCameraControl1 = new VisionBuilder.UI.Windows.Components.SingleCameraControl();
|
||||||
btnTestMode = new MaterialSkin.Controls.MaterialRaisedButton();
|
btnTestMode = new MaterialSkin.Controls.MaterialRaisedButton();
|
||||||
flowLayoutPanel1 = new FlowLayoutPanel();
|
flowLayoutPanel1 = new FlowLayoutPanel();
|
||||||
|
lblVersion = new Label();
|
||||||
flowLayoutPanel1.SuspendLayout();
|
flowLayoutPanel1.SuspendLayout();
|
||||||
SuspendLayout();
|
SuspendLayout();
|
||||||
//
|
//
|
||||||
@@ -141,11 +142,23 @@
|
|||||||
flowLayoutPanel1.Size = new Size(728, 80);
|
flowLayoutPanel1.Size = new Size(728, 80);
|
||||||
flowLayoutPanel1.TabIndex = 12;
|
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
|
// Form1
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(1920, 1080);
|
ClientSize = new Size(1920, 1080);
|
||||||
|
Controls.Add(lblVersion);
|
||||||
Controls.Add(flowLayoutPanel1);
|
Controls.Add(flowLayoutPanel1);
|
||||||
Controls.Add(singleCameraControl1);
|
Controls.Add(singleCameraControl1);
|
||||||
Controls.Add(materialDivider1);
|
Controls.Add(materialDivider1);
|
||||||
@@ -165,5 +178,6 @@
|
|||||||
private Components.SingleCameraControl singleCameraControl1;
|
private Components.SingleCameraControl singleCameraControl1;
|
||||||
private MaterialSkin.Controls.MaterialRaisedButton btnTestMode;
|
private MaterialSkin.Controls.MaterialRaisedButton btnTestMode;
|
||||||
private FlowLayoutPanel flowLayoutPanel1;
|
private FlowLayoutPanel flowLayoutPanel1;
|
||||||
|
private Label lblVersion;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ namespace VisionBuilder.UI.Windows.Test
|
|||||||
singleCameraControl1.SetViewModel(mainWindowVm.SingleCameraVms[0]);
|
singleCameraControl1.SetViewModel(mainWindowVm.SingleCameraVms[0]);
|
||||||
Load += Form1_Load;
|
Load += Form1_Load;
|
||||||
_mainWindowVm.PropertyChanged += _mainWindowVm_PropertyChanged;
|
_mainWindowVm.PropertyChanged += _mainWindowVm_PropertyChanged;
|
||||||
|
lblVersion.Text = $"v{Application.ProductVersion.Split('+')[0]}";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
26
VisionBuilder.UI.Windows.Test/Installer/uno.bat
Normal file
26
VisionBuilder.UI.Windows.Test/Installer/uno.bat
Normal file
@@ -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
|
||||||
@@ -7,8 +7,11 @@
|
|||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<ApplicationIcon>Inspectron icon-512.ico</ApplicationIcon>
|
<ApplicationIcon>Inspectron icon-512.ico</ApplicationIcon>
|
||||||
|
<Deterministic>false</Deterministic>
|
||||||
|
<Version>1.0.1</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="Inspectron icon-512.ico" />
|
<Content Include="Inspectron icon-512.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -40,4 +43,16 @@
|
|||||||
</Compile>
|
</Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="Installer\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||||
|
<Exec Command=" echo "$(ProjectDir)Output\UNO$(Version).exe"
if exist "$(ProjectDir)\Installer\Output\UNO$(Version).exe" (
 echo ERROR: Output\UNO$(Version).exe already exists.
 exit /b 1
)" />
|
||||||
|
</Target>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
Reference in New Issue
Block a user