-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.bat
More file actions
42 lines (38 loc) · 1.12 KB
/
make.bat
File metadata and controls
42 lines (38 loc) · 1.12 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
@REM Defines the certificate to use for signatures.
@REM Use Powershell to find the available certs:
@REM
@REM PS> Get-ChildItem -Path Cert:CurrentUser\My
@REM
set cert=73E7B9D1F72EDA033E7A9D6B17BC37A96CE8513A
set timestamp=http://timestamp.sectigo.com
set VSAPPIDDIR=
set VSAPPIDNAME=devenv.exe
@REM ===================
@REM Compile C++ sources
@REM ===================
msbuild BrowserSelector.sln /p:Configuration=Release /p:Platform=Win32
if not %errorlevel% == 0 (
exit /b 1
)
@REM ==================
@REM Run Unit Test
@REM ==================
vstest.console Release\UnitTest.dll
if not %errorlevel% == 0 (
exit /b 1
)
@REM ==================
@REM Sign source code
@REM ==================
signtool sign /t %timestamp% /fd SHA1 /sha1 %cert% Release\*.dll Release\*.exe x64\Release\BrowserSelectorBHO64.dll
if not %errorlevel% == 0 (
exit /b 1
)
@REM ==================
@REM Create Installer
@REM ==================
devenv BrowserSelectorSetup/BrowserSelectorSetup.vdproj /Build "Release|Win32"
if not %errorlevel% == 0 (
exit /b 1
)
signtool sign /t %timestamp% /fd SHA1 /sha1 %cert% BrowserSelectorSetup\Release\*.msi