mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Updates Windows release scripts to generate and upload GPG signatures.
This commit is contained in:
parent
79a6ccad53
commit
7b8c5f58aa
3 changed files with 56 additions and 1 deletions
|
@ -38,6 +38,17 @@
|
|||
<Error Text="No path for PLINK provided" Condition="'$(PLINK)' == ''" />
|
||||
</Target>
|
||||
|
||||
<Target Name="_RunGpg" Condition="'$(GPG)' != ''" Inputs="@(File)" Outputs="$(IntermediateOutputPath)\gpg\%(FileName)%(Extension).asc">
|
||||
<MakeDir Directories="$(IntermediateOutputPath)gpg" />
|
||||
<Delete Files="$(IntermediateOutputPath)\gpg\%(File.FileName)%(File.Extension).asc" Condition="Exists('$(IntermediateOutputPath)\gpg\%(File.FileName)%(File.Extension).asc')" />
|
||||
<Exec Command=""$(GPG)" -ba -o "$(IntermediateOutputPath)\gpg\%(File.FileName)%(File.Extension).asc" "%(File.FullPath)"" />
|
||||
<ItemGroup>
|
||||
<File Include="$(IntermediateOutputPath)\gpg\%(File.FileName)%(File.Extension).asc">
|
||||
<CopyTo>%(File.CopyTo)</CopyTo>
|
||||
</File>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="_Upload" Condition="!$(DryRun)">
|
||||
<Exec Command=""$(PLINK)" $(User)@$(Host) mkdir %(File.CopyTo) ^&^& chgrp downloads %(File.CopyTo) ^&^& chmod g-w,o+rx %(File.CopyTo)
|
||||
"$(PSCP)" @(File,' ') $(User)@$(Host):%(File.CopyTo)
|
||||
|
@ -53,7 +64,15 @@ echo.
|
|||
echo." />
|
||||
</Target>
|
||||
|
||||
<Target Name="Upload" DependsOnTargets="_ValidateProperties;_PrintNames;_Upload" />
|
||||
<Target Name="Upload" DependsOnTargets="_ValidateProperties;_RunGpg;_PrintNames;_Upload" />
|
||||
|
||||
<Target Name="ShowHashes">
|
||||
<ItemGroup>
|
||||
<UserFiles Include="@(File)" Condition="'%(File.CopyTo)' == '$(EXETarget)'" />
|
||||
</ItemGroup>
|
||||
|
||||
<Exec Command=""$(PythonExe)" generate_md5.py @(UserFiles->'"%(FullPath)"',' ')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="Build">
|
||||
<Error Text="This script should be invoked using uploadrelease.bat." />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue