forked from Merchello/Merchello
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
38 lines (27 loc) · 926 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
33
34
35
36
37
38
ECHO off
SET /P APPVEYOR_BUILD_NUMBER=Please enter a build number (e.g. 134):
SET /P PACKAGE_VERSION=Please enter your package version (e.g. 1.0.5):
SET /P UMBRACO_PACKAGE_PRERELEASE_SUFFIX=Please enter your package release suffix or leave empty (e.g. beta):
SET /P APPVEYOR_REPO_TAG=If you want to simulate a GitHub tag for a release (e.g. true):
if "%APPVEYOR_BUILD_NUMBER%" == "" (
SET APPVEYOR_BUILD_NUMBER=100
)
if "%PACKAGE_VERSION%" == "" (
SET PACKAGE_VERSION=0.1.0
)
SET APPVEYOR_BUILD_VERSION=%PACKAGE_VERSION%.%APPVEYOR_BUILD_NUMBER%
if "%APPVEYOR_REPO_TAG%" == "true" (
SET MERCHELLO_VERSION = %PACKAGE_VERSION%
) else (
SET MERCHELLO_VERSION = %APPVEYOR_BUILD_VERSION%
)
if exist ".\src\Merchello.Web.UI\App_Plugins\Merchello" (
RMDIR /S /Q ".\src\Merchello.Web.UI\App_Plugins\Merchello"
)
CALL build-grunt.cmd
build-appveyor.cmd
@IF %ERRORLEVEL% NEQ 0 GOTO err
@EXIT /B 0
:err
@PAUSE
@EXIT /B 1