forked from Novicell/Novicell.Examine.ElasticSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
33 lines (24 loc) · 759 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
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 version_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.2.0
)
if "%POSTFIX%" == "" (
SET mssemver=%PACKAGE_VERSION%-%APPVEYOR_BUILD_NUMBER%
)
else "%POSTFIX%" == "" (
SET mssemver=%PACKAGE_VERSION%-%version_suffix%-%APPVEYOR_BUILD_NUMBER%
)
SET CONFIGURATION=Debug
build-appveyor.cmd
@IF %ERRORLEVEL% NEQ 0 GOTO err
@EXIT /B 0
:err
@PAUSE
@EXIT /B 1