2424 echo "WINPYthon_subdirectory_name=python" >> $GITHUB_ENV
2525 echo "WINPYVER=3.13.6.0dotb3" >> $GITHUB_ENV
2626 echo "WINPYVER2=3.13.6.0" >> $GITHUB_ENV
27- echo "WINPYFLAVOR=dot " >> $GITHUB_ENV
27+ echo "WINPYFLAVOR=dotc " >> $GITHUB_ENV
2828 echo "WINPYARCH=64" >> $GITHUB_ENV
2929
3030 echo "WINPYrequirements=winpython\portable\cycle_2025_04\requir.64-3_13_5_1dotb3.txt" >> $GITHUB_ENV
@@ -119,19 +119,40 @@ jobs:
119119 run : |
120120 & "$env:build_location\python\python.exe" -m pip install --no-deps --no-index --trusted-host=None --find-links=dotpython\wheelhouse --require-hashes -r $env:WINPYrequirements
121121
122+
122123 - name : List build_location Markdowned content (for debugging)
123124 shell : pwsh
124125 run : |
126+ mkdir publish_dot
127+ $destfile = "publish_dot\WinPython$env:WINPYFLAVOR-$env:WINPYARCHbit-$env:WINPYVER2.md"
125128 & "$env:build_location\python\python.exe" -m wppm -md
129+ & "$env:build_location\python\python.exe" -m wppm -md | Out-File -FilePath $destfile -Encoding utf8
126130
127- # step avoided: upload-artifact will also .zip it (perplexity AI advising)
128- # - name: Zip the result
129- # shell: pwsh
130- # run: |
131- # Compress-Archive -Path WPy64-31351b3\* -DestinationPath WinPython64-3.13.5.1dotcloudb3.zip
132131
132+ & "$env:build_location\python\python.exe" -m pip freeze --dest dotpython\freeze.txt
133+ $destfile = "publish_dot\pylock.$env:WINPYARCH.$($env:WINPYVER -replace '\.', '_').toml"
134+ & "$env:build_location\python\python.exe" -m pip lock --no-deps --find-links=dotpython\wheelhouse --require-hashes -r $env:WINPYrequirements -o $destfile
135+
136+ $outreq = "publish_dot\requir.$env:WINPYARCH.$($env:WINPYVER -replace '\.', '_').txt"
137+ & "$env:build_location\python\python.exe" -X utf8 -c "from wppm import wheelhouse as wh; wh.pylock_to_req(r'$env:destfile', r'$env:outreq')"
138+
139+ - name : Zip the result
140+ shell : pwsh
141+ run : |
142+ $destfile = "publish_dot\WinPython-$env:WINPYARCHbit-$env:WINPYVER.zip"
143+ Compress-Archive -Path "$env:build_location"\* -DestinationPath $destfile
144+
145+ - name : 7z archive the result
146+ shell : pwsh
147+ run : |
148+ $destfile7z = "publish_dot\WinPython-$env:WINPYARCHbit-$env:WINPYVER.7z"
149+ $sourceDir = "$env:build_location"
150+
151+ # Use 7z.exe from PATH, or specify full path if needed
152+ 7z a $destfile7z $sourceDir
153+
133154 - name : Upload WinPython folder as artifact
134155 uses : actions/upload-artifact@v4
135156 with :
136- name : WinPython64-3.13.6.0dotcloudb3
137- path : WPy64-31360b3
157+ name : publish_dotc
158+ path : publish_dot
0 commit comments