Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d3bbc524
Unverified
Kaydet (Commit)
d3bbc524
authored
Ara 21, 2018
tarafından
Steve Dower
Kaydeden (comit)
GitHub
Ara 21, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Enable signing Windows builds with SHA1 environment variable (GH-11279)
üst
f0af4c54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
pyproject.props
PCbuild/pyproject.props
+3
-2
sdktools.psm1
Tools/msi/sdktools.psm1
+4
-1
No files found.
PCbuild/pyproject.props
Dosyayı görüntüle @
d3bbc524
...
@@ -187,10 +187,11 @@ public override bool Execute() {
...
@@ -187,10 +187,11 @@ public override bool Execute() {
<SdkBinPath
Condition=
"!Exists($(SdkBinPath))"
>
$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86
</SdkBinPath>
<SdkBinPath
Condition=
"!Exists($(SdkBinPath))"
>
$(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Kits\Installed Roots@KitsRoot)\bin\x86
</SdkBinPath>
<SdkBinPath
Condition=
"!Exists($(SdkBinPath))"
>
$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\
</SdkBinPath>
<SdkBinPath
Condition=
"!Exists($(SdkBinPath))"
>
$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.1A@InstallationFolder)\Bin\
</SdkBinPath>
<_SignCommand
Condition=
"Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)"
>
"$(SdkBinPath)\signtool.exe" sign /q /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"
</_SignCommand>
<_SignCommand
Condition=
"Exists($(SdkBinPath)) and '$(SigningCertificate)' != '' and $(SupportSigning)"
>
"$(SdkBinPath)\signtool.exe" sign /q /a /n "$(SigningCertificate)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"
</_SignCommand>
<_SignCommand
Condition=
"Exists($(SdkBinPath)) and '$(SigningCertificateSha1)' != '' and $(SupportSigning)"
>
"$(SdkBinPath)\signtool.exe" sign /q /a /sha1 "$(SigningCertificateSha1)" /fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d "Python $(PythonVersion)"
</_SignCommand>
<_MakeCatCommand
Condition=
"Exists($(SdkBinPath))"
>
"$(SdkBinPath)\makecat.exe"
</_MakeCatCommand>
<_MakeCatCommand
Condition=
"Exists($(SdkBinPath))"
>
"$(SdkBinPath)\makecat.exe"
</_MakeCatCommand>
</PropertyGroup>
</PropertyGroup>
<Target
Name=
"_SignBuild"
AfterTargets=
"AfterBuild"
Condition=
"'$(
SigningCertificate
)' != '' and $(SupportSigning)"
>
<Target
Name=
"_SignBuild"
AfterTargets=
"AfterBuild"
Condition=
"'$(
_SignCommand
)' != '' and $(SupportSigning)"
>
<Error
Text=
"Unable to locate signtool.exe. Set /p:SignToolPath and rebuild"
Condition=
"'$(_SignCommand)' == ''"
/>
<Error
Text=
"Unable to locate signtool.exe. Set /p:SignToolPath and rebuild"
Condition=
"'$(_SignCommand)' == ''"
/>
<Exec
Command=
'$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"'
ContinueOnError=
"false"
/>
<Exec
Command=
'$(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)" || $(_SignCommand) "$(TargetPath)"'
ContinueOnError=
"false"
/>
</Target>
</Target>
...
...
Tools/msi/sdktools.psm1
Dosyayı görüntüle @
d3bbc524
...
@@ -21,6 +21,9 @@ function Sign-File {
...
@@ -21,6 +21,9 @@ function Sign-File {
$description
=
"Python"
;
$description
=
"Python"
;
}
}
}
}
if
(
-not
$certsha1
)
{
$certsha1
=
$env
:SigningCertificateSha1;
}
if
(
-not
$certname
)
{
if
(
-not
$certname
)
{
$certname
=
$env
:SigningCertificate;
$certname
=
$env
:SigningCertificate;
}
}
...
@@ -32,7 +35,7 @@ function Sign-File {
...
@@ -32,7 +35,7 @@ function Sign-File {
if
(
$certsha1
)
{
if
(
$certsha1
)
{
SignTool sign /sha1
$certsha1
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
SignTool sign /sha1
$certsha1
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
}
elseif
(
$certname
)
{
}
elseif
(
$certname
)
{
SignTool sign /n
$certname
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
SignTool sign /
a /
n
$certname
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
}
elseif
(
$certfile
)
{
}
elseif
(
$certfile
)
{
SignTool sign /f
$certfile
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
SignTool sign /f
$certfile
/fd sha256 /t http://timestamp.verisign.com/scripts/timestamp.dll /d
$description
$a
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment