Repository navigation
Expand file tree
/
Copy pathbuild-installer.cmd
More file actions
65 lines (53 loc) · 2 KB
/
Copy pathbuild-installer.cmd
File metadata and controls
65 lines (53 loc) · 2 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
rem Requires Inno Setup from http://www.jrsoftware.org/isdl.php
setlocal
set "iscc="
for %%I in (ISCC.exe) do set "iscc=%%~$PATH:I"
if not defined iscc if exist "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" set "iscc=C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
if not defined iscc (
echo ISCC.exe not found on PATH or at "C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
exit /b 1
)
set "releaseRoot=bin\Release"
set "appOutput=%releaseRoot%\Application"
set "shimOutput=%releaseRoot%\VoiceAttackPluginShim"
set "docGenerator=%releaseRoot%\BuildTools\DocumentationGenerator\DocumentationGenerator.dll"
echo ---- Checking MSBuild release layout ----
if not exist "%appOutput%\Eddi.exe" (
echo Eddi.exe not found at "%appOutput%\Eddi.exe"
exit /b 1
)
if not exist "%docGenerator%" (
echo DocumentationGenerator.dll not found at "%docGenerator%"
exit /b 1
)
if not exist "%shimOutput%\EddiVoiceAttackAdapter.dll" (
echo EddiVoiceAttackAdapter.dll not found at "%shimOutput%\EddiVoiceAttackAdapter.dll"
exit /b 1
)
if not exist "%shimOutput%\EDDI.vap" (
echo EDDI.vap not found at "%shimOutput%\EDDI.vap"
exit /b 1
)
if not exist "%shimOutput%\eddi_app_path.txt" (
echo eddi_app_path.txt not found at "%shimOutput%\eddi_app_path.txt"
exit /b 1
)
echo ---- Generating installer documentation payload ----
dotnet "%docGenerator%" "%appOutput%"
if not "%ERRORLEVEL%"=="0" exit /b %ERRORLEVEL%
if not exist "%appOutput%\Cottle\Custom keywords.txt" (
echo Custom keywords.txt not found at "%appOutput%\Cottle\Custom keywords.txt"
exit /b 1
)
if not exist "%appOutput%\Wiki\Variables.md" (
echo Variables.md not found at "%appOutput%\Wiki\Variables.md"
exit /b 1
)
if not exist "%appOutput%\Wiki\VoiceAttack-Integration.md" (
echo VoiceAttack-Integration.md not found at "%appOutput%\Wiki\VoiceAttack-Integration.md"
exit /b 1
)
echo ---- Compiling installer ----
"%iscc%" Installer.iss
if not "%ERRORLEVEL%"=="0" exit /b %ERRORLEVEL%
echo ---- Installer compiled ----