|
|
@ -343,16 +343,16 @@ jobs:
|
|
|
|
include:
|
|
|
|
include:
|
|
|
|
- arch: 'x64'
|
|
|
|
- arch: 'x64'
|
|
|
|
runner: windows-2025
|
|
|
|
runner: windows-2025
|
|
|
|
suffix: ''
|
|
|
|
|
|
|
|
python_version: '3.10'
|
|
|
|
python_version: '3.10'
|
|
|
|
|
|
|
|
suffix: ''
|
|
|
|
- arch: 'x86'
|
|
|
|
- arch: 'x86'
|
|
|
|
runner: windows-2025
|
|
|
|
runner: windows-2025
|
|
|
|
suffix: '_x86'
|
|
|
|
|
|
|
|
python_version: '3.10'
|
|
|
|
python_version: '3.10'
|
|
|
|
|
|
|
|
suffix: '_x86'
|
|
|
|
- arch: 'arm64'
|
|
|
|
- arch: 'arm64'
|
|
|
|
runner: windows-11-arm
|
|
|
|
runner: windows-11-arm
|
|
|
|
suffix: '_arm64'
|
|
|
|
|
|
|
|
python_version: '3.13' # arm64 only has Python >= 3.11 available
|
|
|
|
python_version: '3.13' # arm64 only has Python >= 3.11 available
|
|
|
|
|
|
|
|
suffix: '_arm64'
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/checkout@v4
|
|
|
@ -385,6 +385,7 @@ jobs:
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
python devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
|
|
|
|
python devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"
|
|
|
|
python devscripts/make_lazy_extractors.py
|
|
|
|
python devscripts/make_lazy_extractors.py
|
|
|
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
/yt-dlp-build-venv/Scripts/Activate.ps1
|
|
|
|
/yt-dlp-build-venv/Scripts/Activate.ps1
|
|
|
@ -393,32 +394,18 @@ jobs:
|
|
|
|
Compress-Archive -Path ./dist/yt-dlp${{ matrix.suffix }}/* -DestinationPath ./dist/yt-dlp_win${{ matrix.suffix }}.zip
|
|
|
|
Compress-Archive -Path ./dist/yt-dlp${{ matrix.suffix }}/* -DestinationPath ./dist/yt-dlp_win${{ matrix.suffix }}.zip
|
|
|
|
|
|
|
|
|
|
|
|
- name: Verify --update-to
|
|
|
|
- name: Verify --update-to
|
|
|
|
# if: vars.UPDATE_TO_VERIFICATION
|
|
|
|
if: vars.UPDATE_TO_VERIFICATION
|
|
|
|
# Temporarily skip for arm64 until there is a release that it can --update-to
|
|
|
|
|
|
|
|
if: |
|
|
|
|
|
|
|
|
vars.UPDATE_TO_VERIFICATION && matrix.arch != 'arm64'
|
|
|
|
|
|
|
|
run: |
|
|
|
|
run: |
|
|
|
|
foreach ($name in @("yt-dlp${{ matrix.suffix }}")) {
|
|
|
|
foreach ($name in @("yt-dlp${{ matrix.suffix }}")) {
|
|
|
|
Copy-Item "./dist/${name}.exe" "./dist/${name}_downgraded.exe"
|
|
|
|
Copy-Item "./dist/${name}.exe" "./dist/${name}_downgraded.exe"
|
|
|
|
$version = & "./dist/${name}.exe" --version
|
|
|
|
$version = & "./dist/${name}.exe" --version
|
|
|
|
& "./dist/${name}_downgraded.exe" -v --update-to yt-dlp/yt-dlp@2023.03.04
|
|
|
|
& "./dist/${name}_downgraded.exe" -v --update-to yt-dlp/yt-dlp@2025.08.20
|
|
|
|
$downgraded_version = & "./dist/${name}_downgraded.exe" --version
|
|
|
|
$downgraded_version = & "./dist/${name}_downgraded.exe" --version
|
|
|
|
if ($version -eq $downgraded_version) {
|
|
|
|
if ($version -eq $downgraded_version) {
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: remove when there is a windows_arm64 release that we can --update-to
|
|
|
|
|
|
|
|
- name: Verify arm64 executable
|
|
|
|
|
|
|
|
if: |
|
|
|
|
|
|
|
|
vars.UPDATE_TO_VERIFICATION && matrix.arch == 'arm64'
|
|
|
|
|
|
|
|
run: |
|
|
|
|
|
|
|
|
foreach ($name in @("yt-dlp${{ matrix.suffix }}")) {
|
|
|
|
|
|
|
|
& "./dist/${name}.exe" -v --print-traffic --impersonate chrome "https://tls.browserleaks.com/json" -o ./resp.json
|
|
|
|
|
|
|
|
& cat ./resp.json
|
|
|
|
|
|
|
|
& "./dist/${name}.exe" --version
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
- name: Upload artifacts
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|