Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyajiang committed Jan 22, 2024
1 parent c422644 commit 694cdb4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ on:
default: false
type: boolean
windows:
description: yt-dlp.exe, yt-dlp_min.exe, yt-dlp_win.zip
description: yt-dlp.exe, yt-dlp_win_x86.exe, yt-dlp_win.zip
default: true
type: boolean
windows32:
Expand Down Expand Up @@ -342,16 +342,14 @@ jobs:
python devscripts/make_lazy_extractors.py
- name: Build
run: |
python setup.py py2exe
Move-Item ./dist/yt-dlp.exe ./dist/yt-dlp_min.exe
python pyinst.py
python pyinst.py --onedir
Compress-Archive -Path ./dist/yt-dlp/* -DestinationPath ./dist/yt-dlp_win.zip
- name: Verify --update-to
if: vars.UPDATE_TO_VERIFICATION
run: |
foreach ($name in @("yt-dlp","yt-dlp_min")) {
foreach ($name in @("yt-dlp")) {
Copy-Item "./dist/${name}.exe" "./dist/${name}_downgraded.exe"
$version = & "./dist/${name}.exe" --version
& "./dist/${name}_downgraded.exe" -v --update-to yt-dlp/[email protected]
Expand All @@ -366,7 +364,6 @@ jobs:
with:
path: |
dist/yt-dlp.exe
dist/yt-dlp_min.exe
dist/yt-dlp_win.zip
windows32:
Expand All @@ -392,6 +389,8 @@ jobs:
- name: Build
run: |
python pyinst.py
python pyinst.py --onedir
Compress-Archive -Path ./dist/yt-dlp/* -DestinationPath ./dist/yt-dlp_win_x86.zip
- name: Verify --update-to
if: vars.UPDATE_TO_VERIFICATION
Expand All @@ -411,6 +410,7 @@ jobs:
with:
path: |
dist/yt-dlp_x86.exe
dist/yt-dlp_win_x86.zip
meta_files:
if: inputs.meta_files && always() && !cancelled()
Expand Down

0 comments on commit 694cdb4

Please sign in to comment.