1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-14 00:18:31 +00:00

[build] Add linux_dir builds

Authored by: bashonly
This commit is contained in:
bashonly 2025-08-11 14:48:07 -05:00
parent 08f2f1d641
commit 60fc70676f
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0
3 changed files with 21 additions and 12 deletions

View File

@ -50,7 +50,7 @@ on:
default: true
type: boolean
linux:
description: yt-dlp_linux, yt-dlp_linux_aarch64
description: yt-dlp_linux, yt-dlp_linux.zip, yt-dlp_linux_aarch64, yt-dlp_linux_aarch64.zip
default: true
type: boolean
macos:
@ -145,14 +145,16 @@ jobs:
- uses: actions/checkout@v4
- name: Build executable
env:
channel: ${{ inputs.channel }}
origin: ${{ needs.process.outputs.origin }}
version: ${{ inputs.version }}
EXE_NAME: ${{ matrix.exe }}
CHANNEL: ${{ inputs.channel }}
ORIGIN: ${{ needs.process.outputs.origin }}
VERSION: ${{ inputs.version }}
run: |
mkdir ~/build
cd bundle/docker
docker compose up --build linux_${{ matrix.platform }}
sudo chown "${USER}:docker" ~/build/${{ matrix.exe }}
sudo chown "${USER}:docker" ~/build/${{ matrix.exe }}.zip
chmod +x ~/build/${{ matrix.exe }}
~/build/${{ matrix.exe }} --version
- name: Verify --update-to
@ -169,6 +171,7 @@ jobs:
name: build-bin-${{ github.job }}_${{ matrix.platform }}
path: |
~/build/${{ matrix.exe }}
~/build/${{ matrix.exe }}.zip
compression-level: 0
macos:

View File

@ -7,9 +7,10 @@ services:
args:
BASEIMAGE: ghcr.io/bashonly/manylinux2014_x86_64_builds:latest
environment:
channel: ${channel}
origin: ${origin}
version: ${version}
EXE_NAME: ${EXE_NAME}
CHANNEL: ${CHANNEL}
ORIGIN: ${ORIGIN}
VERSION: ${VERSION}
volumes:
- ~/build:/build
- ../..:/yt-dlp
@ -21,9 +22,10 @@ services:
args:
BASEIMAGE: ghcr.io/bashonly/manylinux2014_aarch64_builds:latest
environment:
channel: ${channel}
origin: ${origin}
version: ${version}
EXE_NAME: ${EXE_NAME}
CHANNEL: ${CHANNEL}
ORIGIN: ${ORIGIN}
VERSION: ${VERSION}
volumes:
- ~/build:/build
- ../..:/yt-dlp

View File

@ -6,6 +6,10 @@ source ~/yt-dlp-build-venv/bin/activate
python3 -m devscripts.install_deps -o --include build
python3 -m devscripts.install_deps --include secretstorage --include curl-cffi --include pyinstaller
python3 -m devscripts.make_lazy_extractors
python3 devscripts/update-version.py -c "${channel}" -r "${origin}" "${version}"
python3 devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}"
python3 -m bundle.pyinstaller --onedir
pushd "./dist/${EXE_NAME}"
zip -r "/build/${EXE_NAME}.zip" .
popd
python3 -m bundle.pyinstaller
mv dist/* /build/
mv "./dist/${EXE_NAME}" /build/