FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Tools/msi/uploadrelease.proj at pythoncapi · pythoncapi/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
pythoncapi
/
cpython
Public
forked from
python/cpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Tools
/
msi
/
uploadrelease.proj
Copy path
More file actions
More file actions
Latest commit
History
History
History
113 lines (99 loc) · 6.6 KB
Breadcrumbs
cpython
/
Tools
/
msi
/
uploadrelease.proj
Copy path
File metadata and controls
113 lines (99 loc) · 6.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?
xml
version
=
"
1.0
"
encoding
=
"
utf-8
"
?>
<
Project
ToolsVersion
=
"
4.0
"
DefaultTargets
=
"
Build
"
xmlns
=
"
http://schemas.microsoft.com/developer/msbuild/2003
"
>
<
PropertyGroup
>
<
ProjectGuid
>{2D69F2AB-D5D0-4344-84B5-EF6DB34A9BC9}</
ProjectGuid
>
<
OutputName
>python</
OutputName
>
<
OutputSuffix
></
OutputSuffix
>
<
DownloadUrlBase
Condition
=
"
'$(DownloadUrlBase)' == ''
"
>$(TARGET)</
DownloadUrlBase
>
<
DownloadUrlBase
Condition
=
"
'$(DownloadUrlBase)' == ''
"
>/srv/www.python.org/ftp/python</
DownloadUrlBase
>
<
IncludeDoc
Condition
=
"
'$(IncludeDoc)' == ''
"
>true</
IncludeDoc
>
<
BuildForRelease
Condition
=
"
'$(BuildForRelease)' == ''
"
>true</
BuildForRelease
>
<
DryRun
Condition
=
"
'$(DryRun)' == ''
"
>false</
DryRun
>
</
PropertyGroup
>
<
Import
Project
=
"
msi.props
"
/>
<
Import
Project
=
"
bundle\bundle.targets
"
/>
<
PropertyGroup
>
<
EXETarget
>$(DownloadUrlBase.TrimEnd(`/`))/$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)</
EXETarget
>
<
MSITarget
>$(DownloadUrl.Replace(`{version}`, `$(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)`).Replace(`{arch}`, `$(ArchName)`).Replace(`{releasename}`, `$(ReleaseLevelName)`).Replace(`{msi}`, ``).TrimEnd(`/`))</
MSITarget
>
</
PropertyGroup
>
<
ItemGroup
>
<
File
Include
=
"
$(OutputPath)\*.msi
"
>
<
CopyTo
>$(MSITarget)</
CopyTo
>
</
File
>
<
File
Include
=
"
$(OutputPath)\*.exe;$(OutputPath)\*.zip
"
>
<
CopyTo
>$(EXETarget)</
CopyTo
>
</
File
>
<
File
Include
=
"
$(PySourcePath)Doc\build\htmlhelp\python$(MajorVersionNumber)$(MinorVersionNumber)$(MicroVersionNumber)$(ReleaseLevelName).chm
"
Condition
=
"
$(IncludeDoc)
"
>
<
CopyTo
>$(EXETarget)</
CopyTo
>
</
File
>
</
ItemGroup
>
<
Target
Name
=
"
_ValidateProperties
"
>
<
Error
Text
=
"
No value for Host provided
"
Condition
=
"
'$(Host)' == ''
"
/>
<
Error
Text
=
"
No value for User provided
"
Condition
=
"
'$(User)' == ''
"
/>
<
Error
Text
=
"
No path for PSCP provided
"
Condition
=
"
'$(PSCP)' == ''
"
/>
<
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)
"
"
IgnoreExitCode
=
"
false
"
/>
<
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)
"
ContinueOnError
=
"
true
"
/>
<
Exec
Command
=
"
"
$(PSCP)
"
@(File,' ') $(User)@$(Host):%(File.CopyTo)
"
/>
<
Exec
Command
=
"
"
$(PLINK)
"
$(User)@$(Host) chgrp downloads %(File.CopyTo)/*; chmod g-w,o+r %(File.CopyTo)/*
"
ContinueOnError
=
"
true
"
/>
</
Target
>
<
Target
Name
=
"
_PrintNames
"
Condition
=
"
$(DryRun)
"
>
<
Exec
Command
=
"
echo
"
$(PLINK)
"
$(User)@$(Host) mkdir %(File.CopyTo) ^
&
^
&
chgrp downloads %(File.CopyTo) ^
&
^
&
chmod g-w,o+rx %(File.CopyTo)
"
/>
<
Exec
Command
=
"
echo
"
$(PSCP)
"
@(File,' ') $(User)@$(Host):%(File.CopyTo)
"
/>
<
Exec
Command
=
"
echo
"
$(PLINK)
"
$(User)@$(Host) chgrp downloads %(File.CopyTo)/*; chmod g-w,o+r %(File.CopyTo)/*
"
/>
</
Target
>
<
Target
Name
=
"
_TestLayout
"
>
<
ItemGroup
>
<
WebInstaller
Include
=
"
$(OutputPath)\*-webinstall.exe
"
/>
<
WebInstaller
>
<
SourceDir
>$(TEMP)\%(Filename)_source</
SourceDir
>
<
SourceExe
>$(TEMP)\%(Filename)_source\%(Filename)%(Extension)</
SourceExe
>
<
LayoutDir
>$(TEMP)\%(Filename)_layout</
LayoutDir
>
<
LogDir
>$(OutputPath)\%(Filename)_layoutlog</
LogDir
>
<
LogFile
>$(OutputPath)\%(Filename)_layoutlog\%(Filename).log</
LogFile
>
</
WebInstaller
>
</
ItemGroup
>
<
Error
Text
=
"
Could not find installer
"
Condition
=
"
@(WebInstaller) == ''
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.SourceDir)
"
Condition
=
"
Exists('%(WebInstaller.SourceDir)')
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.LayoutDir)
"
Condition
=
"
Exists('%(WebInstaller.LayoutDir)')
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.LogDir)
"
Condition
=
"
Exists('%(WebInstaller.LogDir)')
"
/>
<
MakeDir
Directories
=
"
%(WebInstaller.SourceDir)
"
/>
<
Copy
SourceFiles
=
"
@(WebInstaller)
"
DestinationFiles
=
"
%(WebInstaller.SourceExe)
"
/>
<
Exec
Command
=
"
start
"
Install test
"
/wait
"
%(WebInstaller.SourceExe)
"
/layout
"
%(WebInstaller.LayoutDir)
"
/passive /log
"
%(WebInstaller.LogFile)
"
"
IgnoreExitCode
=
"
false
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.LayoutDir)
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.SourceDir)
"
/>
<
RemoveDir
Directories
=
"
%(WebInstaller.LogDir)
"
/>
<
Message
Text
=
"
Successfully downloaded %(WebInstaller.Filename)%(WebInstaller.Extension) layout
"
Importance
=
"
high
"
/>
</
Target
>
<
Target
Name
=
"
Upload
"
DependsOnTargets
=
"
_ValidateProperties;_RunGpg;_PrintNames;_Upload
"
/>
<
Target
Name
=
"
Test
"
DependsOnTargets
=
"
_TestLayout
"
/>
<
Target
Name
=
"
Purge
"
>
<
Error
Condition
=
"
!Exists('$(PythonExe)')
"
Text
=
"
No Python executable available at $(PythonExe)
"
/>
<
Exec
Command
=
"
echo
"
$(PythonExe)
"
purge.py $(PythonVersion)
"
Condition
=
"
$(DryRun)
"
/>
<
Exec
Command
=
"
"
$(PythonExe)
"
purge.py $(PythonVersion)
"
Condition
=
"
!$(DryRun)
"
/>
<
Message
Text
=
"
Purged uploaded files
"
Importance
=
"
high
"
/>
</
Target
>
<
Target
Name
=
"
ShowHashes
"
>
<
ItemGroup
>
<
UserFiles
Include
=
"
@(File)
"
Condition
=
"
'%(File.CopyTo)' == '$(EXETarget)'
"
/>
</
ItemGroup
>
<
Error
Text
=
"
No files generated
"
Condition
=
"
@(UserFiles) == ''
"
/>
<
Exec
Command
=
"
"
$(PythonExe)
"
generate_md5.py @(UserFiles->'
"
%(FullPath)
"
',' ')
"
/>
</
Target
>
<
Target
Name
=
"
Build
"
>
<
Error
Text
=
"
This script should be invoked using uploadrelease.bat.
"
/>
</
Target
>
</
Project
>
Back
|
FazBrowse Home
|
New Git URL