-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.bat
38 lines (34 loc) · 1012 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
@echo off
set addin_path="Z:\data\arcgis\addins\btm.esriaddin"
set cert_path="Z:\data\arcgis\addins\cert_2016.cer"
where /q python
IF ERRORLEVEL 1 (
REM Assume default 10.4 installation
set py="c:\python27\ArcGIS10.4\python"
) ELSE (
set py="python"
)
echo Building addin...
"%py%" makeaddin.py
echo Signing addin...
REM Assumes that the signing program installed -- it is installed with
REM the .NET SDK of the vesrion of ArcGIS Desktop used.
"c:\Program Files (x86)\Common Files\ArcGIS\bin\ESRISignAddin.exe" "%addin_path%" /c:"%cert_path%"
set runTest=n
set /p runTest=Would you like to run the test suite? y/N:
if "%runTest%" == "y" GOTO runtests
echo Skipping tests.
GOTO install
:runtests
echo Executing tests...
"%py%" tests/testMain.py
GOTO install
:install
set install=n
set /p install=Would you like to install the add-in? y/N:
if "%install%" == "y" GOTO installAddin
echo Skipping installation.
GOTO end
:installAddin
start ../btm.esriaddin
:end