Skip to content

Commit

Permalink
Refactor builder script and GitHub Actions workflow for yt-dlp. Updat…
Browse files Browse the repository at this point in the history
…ed builder script to use new module paths for dependency installation and packaging. Modified GitHub Actions to clone the yt-dlp repository instead of downloading a tarball, improving build efficiency and ensuring the latest code is used.
  • Loading branch information
svemat01 committed Jan 22, 2025
1 parent 0e8fad4 commit 61a64d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build-ytdlp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ jobs:
LATEST_VERSION=$(curl -s https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest | jq -r .tag_name)
echo "version=${LATEST_VERSION}" >> $GITHUB_OUTPUT
- name: Download latest yt-dlp source
- name: Clone yt-dlp repository
run: |
wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.tar.gz
mkdir yt-dlp
tar xzf yt-dlp.tar.gz -C yt-dlp --strip-components=1
rm yt-dlp.tar.gz
git clone --depth 1 --branch release https://github.com/yt-dlp/yt-dlp.git
- name: Log in to the Container registry
uses: docker/login-action@v3
Expand Down
6 changes: 3 additions & 3 deletions builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ set -e
: "${VERSION:=$(date +%Y.%m.%d)}"

source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
python -m yt_dlp.devscripts.install_deps --include secretstorage --include curl-cffi
python -m yt_dlp.devscripts.make_lazy_extractors
python -m devscripts.install_deps --include secretstorage --include curl-cffi
python -m devscripts.make_lazy_extractors
python devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}"
python -m yt_dlp.bundle.pyinstaller --onedir
python -m bundle.pyinstaller --onedir
deactivate

source ~/.local/share/pipx/venvs/staticx/bin/activate
Expand Down

0 comments on commit 61a64d4

Please sign in to comment.