2.0.9
This commit is contained in:
26
VisionBuilder.UI.Windows.Duo/Installer/uno.bat
Normal file
26
VisionBuilder.UI.Windows.Duo/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.Duo.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
|
||||
@@ -8,7 +8,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ApplicationIcon>Inspectron icon-512.ico</ApplicationIcon>
|
||||
<Deterministic>false</Deterministic>
|
||||
<Version>2.0.8</Version>
|
||||
<Version>2.0.9</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
@@ -39,5 +39,8 @@
|
||||
<ItemGroup>
|
||||
<Folder Include="Installer\" />
|
||||
</ItemGroup>
|
||||
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
|
||||
<Exec Command=" echo "$(ProjectDir)Output\DUO$(Version).exe"
if exist "$(ProjectDir)\Installer\Output\DUO$(Version).exe" (
 echo ERROR: Output\DUO$(Version).exe already exists.
 exit /b 1
)" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user