1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-16 09:28:28 +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 default: true
type: boolean type: boolean
linux: 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 default: true
type: boolean type: boolean
macos: macos:
@ -145,14 +145,16 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Build executable - name: Build executable
env: env:
channel: ${{ inputs.channel }} EXE_NAME: ${{ matrix.exe }}
origin: ${{ needs.process.outputs.origin }} CHANNEL: ${{ inputs.channel }}
version: ${{ inputs.version }} ORIGIN: ${{ needs.process.outputs.origin }}
VERSION: ${{ inputs.version }}
run: | run: |
mkdir ~/build mkdir ~/build
cd bundle/docker cd bundle/docker
docker compose up --build linux_${{ matrix.platform }} docker compose up --build linux_${{ matrix.platform }}
sudo chown "${USER}:docker" ~/build/${{ matrix.exe }} sudo chown "${USER}:docker" ~/build/${{ matrix.exe }}
sudo chown "${USER}:docker" ~/build/${{ matrix.exe }}.zip
chmod +x ~/build/${{ matrix.exe }} chmod +x ~/build/${{ matrix.exe }}
~/build/${{ matrix.exe }} --version ~/build/${{ matrix.exe }} --version
- name: Verify --update-to - name: Verify --update-to
@ -169,6 +171,7 @@ jobs:
name: build-bin-${{ github.job }}_${{ matrix.platform }} name: build-bin-${{ github.job }}_${{ matrix.platform }}
path: | path: |
~/build/${{ matrix.exe }} ~/build/${{ matrix.exe }}
~/build/${{ matrix.exe }}.zip
compression-level: 0 compression-level: 0
macos: macos:

View File

@ -7,9 +7,10 @@ services:
args: args:
BASEIMAGE: ghcr.io/bashonly/manylinux2014_x86_64_builds:latest BASEIMAGE: ghcr.io/bashonly/manylinux2014_x86_64_builds:latest
environment: environment:
channel: ${channel} EXE_NAME: ${EXE_NAME}
origin: ${origin} CHANNEL: ${CHANNEL}
version: ${version} ORIGIN: ${ORIGIN}
VERSION: ${VERSION}
volumes: volumes:
- ~/build:/build - ~/build:/build
- ../..:/yt-dlp - ../..:/yt-dlp
@ -21,9 +22,10 @@ services:
args: args:
BASEIMAGE: ghcr.io/bashonly/manylinux2014_aarch64_builds:latest BASEIMAGE: ghcr.io/bashonly/manylinux2014_aarch64_builds:latest
environment: environment:
channel: ${channel} EXE_NAME: ${EXE_NAME}
origin: ${origin} CHANNEL: ${CHANNEL}
version: ${version} ORIGIN: ${ORIGIN}
VERSION: ${VERSION}
volumes: volumes:
- ~/build:/build - ~/build:/build
- ../..:/yt-dlp - ../..:/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 -o --include build
python3 -m devscripts.install_deps --include secretstorage --include curl-cffi --include pyinstaller python3 -m devscripts.install_deps --include secretstorage --include curl-cffi --include pyinstaller
python3 -m devscripts.make_lazy_extractors 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 python3 -m bundle.pyinstaller
mv dist/* /build/ mv "./dist/${EXE_NAME}" /build/