-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmake-signed.bat
32 lines (27 loc) · 959 Bytes
/
make-signed.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
@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
@REM ==================
@REM Compile C# sources
@REM ==================
msbuild /p:Configuration=Release
@REM ==================
@REM Build an installer
@REM ==================
iscc.exe FlexConfirmMail.iss
@REM ==================
@REM Sign the installer
@REM ==================
signtool sign /t %timestamp% /fd SHA256 /sha1 %cert% dest\FlexConfirmMailSetup*.exe
@REM ==================
@REM Add suffix to name
@REM ==================
powershell -C "Get-ChildItem dest\*.exe | rename-item -newname { $_.Name -replace '.exe', '-signed.exe' }"
@REM ==================
@REM Compress templates
@REM ==================
powershell -C "Compress-Archive -DestinationPath dest\FlexConfirmMailADMX.zip policy"