mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
tools: build.bat: add choco prerelease support
This commit is contained in:
parent
9b6542ab80
commit
279b00e195
@ -52,6 +52,6 @@ To verify installation:
|
|||||||
<file src="chocolateyInstall.ps1" target="tools" />
|
<file src="chocolateyInstall.ps1" target="tools" />
|
||||||
<file src="chocolateyUninstall.ps1" target="tools" />
|
<file src="chocolateyUninstall.ps1" target="tools" />
|
||||||
<file src="chocolateyHelper.ps1" target="tools" />
|
<file src="chocolateyHelper.ps1" target="tools" />
|
||||||
<file src="winfsp-$version$.msi" target="tools" />
|
<file src="winfsp-$MsiVersion$.msi" target="tools" />
|
||||||
</files>
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
@ -103,12 +103,20 @@ if not exist "build\%Configuration%\winfsp-*.msi" (echo installer msi not found
|
|||||||
set Version=
|
set Version=
|
||||||
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
||||||
set Version=!Version:winfsp-=!
|
set Version=!Version:winfsp-=!
|
||||||
|
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
|
||||||
|
)
|
||||||
where /q choco.exe
|
where /q choco.exe
|
||||||
if %ERRORLEVEL% equ 0 (
|
if %ERRORLEVEL% equ 0 (
|
||||||
copy ..\choco\* build\%Configuration%
|
copy ..\choco\* build\%Configuration%
|
||||||
copy ..\choco\LICENSE.TXT /B + ..\..\License.txt /B build\%Configuration%\LICENSE.txt /B
|
copy ..\choco\LICENSE.TXT /B + ..\..\License.txt /B build\%Configuration%\LICENSE.txt /B
|
||||||
certutil -hashfile build\%Configuration%\winfsp-!Version!.msi SHA256 >>build\%Configuration%\VERIFICATION.txt
|
certutil -hashfile build\%Configuration%\winfsp-!Version!.msi SHA256 >>build\%Configuration%\VERIFICATION.txt
|
||||||
choco pack build\%Configuration%\winfsp.nuspec --version=!Version! --outputdirectory=build\%Configuration%
|
choco pack build\%Configuration%\winfsp.nuspec --version=!PackageVersion! --outputdirectory=build\%Configuration% MsiVersion=!Version!
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -103,12 +103,20 @@ if not exist "build\%Configuration%\winfsp-*.msi" (echo installer msi not found
|
|||||||
set Version=
|
set Version=
|
||||||
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
||||||
set Version=!Version:winfsp-=!
|
set Version=!Version:winfsp-=!
|
||||||
|
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
|
||||||
|
)
|
||||||
where /q choco.exe
|
where /q choco.exe
|
||||||
if %ERRORLEVEL% equ 0 (
|
if %ERRORLEVEL% equ 0 (
|
||||||
copy ..\choco\* build\%Configuration%
|
copy ..\choco\* build\%Configuration%
|
||||||
copy ..\choco\LICENSE.TXT /B + ..\..\License.txt /B build\%Configuration%\LICENSE.txt /B
|
copy ..\choco\LICENSE.TXT /B + ..\..\License.txt /B build\%Configuration%\LICENSE.txt /B
|
||||||
certutil -hashfile build\%Configuration%\winfsp-!Version!.msi SHA256 >>build\%Configuration%\VERIFICATION.txt
|
certutil -hashfile build\%Configuration%\winfsp-!Version!.msi SHA256 >>build\%Configuration%\VERIFICATION.txt
|
||||||
choco pack build\%Configuration%\winfsp.nuspec --version=!Version! --outputdirectory=build\%Configuration%
|
choco pack build\%Configuration%\winfsp.nuspec --version=!PackageVersion! --outputdirectory=build\%Configuration% MsiVersion=!Version!
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user