forked from chocolatey/ChocolateyGUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
39 lines (30 loc) · 948 Bytes
/
build.bat
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
33
34
35
36
37
38
39
@echo off
REM The creation of this build script (and associated files) was only possible using the
REM work that was done on the BoxStarter Project on GitHub:
REM http://boxstarter.codeplex.com/
REM Big thanks to Matt Wrock (@mwrockx} for creating this project, thanks!
if '%1'=='/?' goto help
if '%1'=='-help' goto help
if '%1'=='-h' goto help
set config=%2
set version=%3
if [%1]==[] (
set action='PackageSolution'
) else (
set action=%1
)
if [%2]==[] (
set config='Release'
) else (
set config=%2
)
if not '%PackageVersion%'=='' (
set version=%PackageVersion%
)
if '%version%'=='' (
set version='12.13.14-pre00015'
)
powershell -NoProfile -ExecutionPolicy bypass -Command "%~dp0/BuildScripts/trigger-build.ps1 -Action %action% -Config %config% -PackageVersion %version%"
goto :eof
:help
powershell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0buildscripts\trigger-build.ps1' -help"