File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ if exist .deps\prepared goto :render
47
47
48
48
:sign
49
49
if exist .\sign.bat call .\sign.bat
50
- if " %SigningCertificate % " == " " goto :success
50
+ if " %SigningProvider % " == " " goto :success
51
51
if " %TimestampServer% " == " " goto :success
52
52
echo [+] Signing
53
- signtool sign /sha1 " %SigningCertificate% " /fd sha256 /tr " %TimestampServer% " /td sha256 /d WireGuard x86\wireguard.exe x86\wg.exe amd64\wireguard.exe amd64\wg.exe arm64\wireguard.exe arm64\wg.exe || goto :error
53
+ signtool sign %SigningProvider% /fd sha256 /tr " %TimestampServer% " /td sha256 /d WireGuard x86\wireguard.exe x86\wg.exe amd64\wireguard.exe amd64\wg.exe arm64\wireguard.exe arm64\wg.exe || goto :error
54
54
55
55
:success
56
56
echo [+] Success. Launch wireguard.exe.
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ C:\Projects\wireguard-windows\installer> build
60
60
Add a file called ` sign.bat ` in the root of this repository with these contents, or similar:
61
61
62
62
``` text
63
- set SigningCertificate= 8BC932FDFF15B892E8364C49B383210810E4709D
63
+ set SigningProvider=/sha1 8BC932FDFF15B892E8364C49B383210810E4709D
64
64
set TimestampServer=http://timestamp.entrust.net/rfc3161ts2
65
65
```
66
66
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ if exist ..\.deps\prepared goto :build
25
25
26
26
:sign
27
27
if exist ..\sign.bat call ..\sign.bat
28
- if " %SigningCertificate % " == " " goto :success
28
+ if " %SigningProvider % " == " " goto :success
29
29
if " %TimestampServer% " == " " goto :success
30
30
echo [+] Signing
31
- signtool sign /sha1 " %SigningCertificate% " /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Tunnel" x86\tunnel.dll amd64\tunnel.dll arm64\tunnel.dll || goto :error
31
+ signtool sign %SigningProvider% /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Tunnel" x86\tunnel.dll amd64\tunnel.dll arm64\tunnel.dll || goto :error
32
32
33
33
:success
34
34
echo [+] Success
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ if exist .deps\prepared goto :build
40
40
call :msi x86 i686 x86 || goto :error
41
41
call :msi amd64 x86_64 x64 || goto :error
42
42
call :msi arm64 aarch64 arm64 || goto :error
43
- if " %SigningCertificate % " == " " goto :success
43
+ if " %SigningProvider % " == " " goto :success
44
44
if " %TimestampServer% " == " " goto :success
45
45
echo [+] Signing
46
- signtool sign /sha1 " %SigningCertificate% " /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Setup" " dist\wireguard-*-%WIREGUARD_VERSION% .msi" || goto :error
46
+ signtool sign %SigningProvider% /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Setup" " dist\wireguard-*-%WIREGUARD_VERSION% .msi" || goto :error
47
47
48
48
:success
49
49
echo [+] Success.
@@ -61,10 +61,10 @@ if exist .deps\prepared goto :build
61
61
if not exist " %~1 " mkdir " %~1 "
62
62
echo [+] Compiling %1
63
63
%CC% %CFLAGS% %LDFLAGS% -o " %~1 \customactions.dll" customactions.c %LDLIBS% || exit /b 1
64
- if " %SigningCertificate % " == " " goto :skipsign
64
+ if " %SigningProvider % " == " " goto :skipsign
65
65
if " %TimestampServer% " == " " goto :skipsign
66
66
echo [+] Signing %1
67
- signtool sign /sha1 " %SigningCertificate% " /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Setup Custom Actions" " %~1 \customactions.dll" || exit /b 1
67
+ signtool sign %SigningProvider% /fd sha256 /tr " %TimestampServer% " /td sha256 /d " WireGuard Setup Custom Actions" " %~1 \customactions.dll" || exit /b 1
68
68
:skipsign
69
69
" %WIX% bin\candle" %WIX_CANDLE_FLAGS% -dWIREGUARD_PLATFORM=" %~1 " -out " %~1 \wireguard.wixobj" -arch %3 wireguard.wxs || exit /b %errorlevel%
70
70
echo [+] Linking %1
You can’t perform that action at this time.
0 commit comments