forked from Maximus5/ConEmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cmd
32 lines (26 loc) · 923 Bytes
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo off
cd /d "%~dp0"
setlocal
set PATH=%~d0\Chocolatey\bin;%PATH%
call "%~dp0..\Deploy\GetCurVer.cmd"
powershell -noprofile -command "%~dp0..\Deploy\UpdatePackageVersions.ps1" %CurVerBuild%
if errorlevel 1 (
call cecho "Failed to update Chocolatey and Nuget packages"
exit /b 100
)
call git add chocolatey/ConEmu.nuspec chocolatey/tools/chocolateyInstall.ps1 chocolatey/tools/chocolateyUninstall.ps1 ConEmu.Core/ConEmu.Core.nuspec
call git commit -m "%CurVerBuild% Chocolatey and Nuget"
if exist "ConEmu.*.nupkg" del "ConEmu.*.nupkg"
if exist "chocolatey\ConEmu.*.nupkg" del "chocolatey\ConEmu.*.nupkg"
cd /d chocolatey
call choco pack -y
if errorlevel 1 (
call cecho "Creation Chocolatey package was failed"
exit /b 100
)
call cecho /green "Chocolatey package was created"
move "%~dp0chocolatey\ConEmu.*.nupkg" "%~dp0"
if errorlevel 1 (
call cecho "Moving Chocolatey package was failed"
exit /b 100
)