This repository was archived by the owner on Aug 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ function BuildConfiguration($config)
98
98
msbuild $config.solution / m:4 / t:Rebuild (" /p:Configuration=Release,Platform=$platformName " )
99
99
CheckExitCode " Failed to build: $ ( $config.name ) "
100
100
101
+ SignFiles " bin\*.exe"
102
+ SignFiles " bin\*.dll"
103
+
101
104
Set-Location ../ AppVeyor
102
105
103
106
if ($config.perl -eq $true )
@@ -147,6 +150,7 @@ function CreateInstaller($config)
147
150
CheckExitCode " Failed to create setup executable."
148
151
149
152
Get-ChildItem - Path ..\VisualMagick\installer\output\* .exe - Recurse | Move-Item - Destination ..\Windows- Distribution
153
+ SignFiles " ..\Windows-Distribution\*.exe"
150
154
}
151
155
152
156
function CreateZipFile ($fileName , $directory )
@@ -217,14 +221,10 @@ function CreateSource($version)
217
221
CreateZipFile $output " .\Source"
218
222
}
219
223
220
- function CheckUpload ( )
224
+ function SignFiles ( $files )
221
225
{
222
- # $day = (Get-Date).DayOfWeek
223
- # if ($day -ne "Saturday" -And $day -ne "Sunday")
224
- # {
225
- # Write-Host "Only uploading in the weekend."
226
- # Remove-Item ..\Windows-Distribution\*
227
- # }
226
+ & $env: SignTool sign / f $env: KeyFile / p " $env: CertPassword " / t http:// timestamp.comodoca.com $files
227
+ CheckExitCode " Failed to sign files."
228
228
}
229
229
230
230
$platform = $args [0 ]
250
250
BuildConfigure
251
251
BuildConfiguration $config
252
252
CreatePackage $config $version
253
- CheckUpload
254
253
}
Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ matrix:
12
12
13
13
environment :
14
14
15
+ PfxUri :
16
+ secure : bQc3Nboe/KLQhUg19FYGyNxL+w6OQ7pTTE2OXPBi2JD9aQICOH9ZNO8MRioScKRSeMR39Jw1T/s3Pnz5pZ2K4pbntOqS5FnF94VnKkekee9MYHOnhSOMh4YrI9D+HmRdTuC+Q0B6IsO2gC1iATI7y2RkbB7cOHYgycyGVuotLVs=
17
+ KeyFile : C:\ImageMagick\ImageMagick.pfx
18
+
19
+ SignTool : C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe
20
+ CertPassword :
21
+ secure : FPTUZszs2LsBXvLLO0u7rD/UJaT2IbyNZAxL9Kjhq4VSZB/hTDq87E7qNN+Wfj+F
22
+
15
23
matrix :
16
24
- im_platform : " x64"
17
25
im_name : " dll-Q8"
@@ -50,6 +58,7 @@ environment:
50
58
im_name : " source"
51
59
52
60
install :
61
+ - ps : Start-FileDownload $env:PfxUri -FileName $env:KeyFile
53
62
- cd AppVeyor
54
63
- Install.cmd %im_platform%
55
64
You can’t perform that action at this time.
0 commit comments