mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-26 12:32:54 -05:00
tools: build.bat: skip choco build for non-WinFsp brands
This commit is contained in:
@@ -105,13 +105,10 @@ if X%SignedPackage%==X (
|
||||
|
||||
:choco
|
||||
if not exist "build\%Configuration%\%MyProductFileName%-*.msi" (echo installer msi not found >&2 & exit /b 1)
|
||||
if not X!MyProductName!==XWinFsp (echo skipping choco build for !MyProductName! >&2 & exit /b 0)
|
||||
set Version=
|
||||
for %%f in (build\%Configuration%\%MyProductFileName%-*.msi) do set Version=%%~nf
|
||||
set Version=!Version:%MyProductFileName%-=!
|
||||
set ProductStage=
|
||||
for /f "delims=<> tokens=3" %%i in ('findstr "<MyProductStage>" version.properties') do (
|
||||
set MyProductStage=%%i
|
||||
)
|
||||
set PackageVersion=!Version!
|
||||
if not X!MyProductStage!==XGold (
|
||||
set PackageVersion=!Version!-pre
|
||||
|
Reference in New Issue
Block a user