mirror of https://github.com/yt-dlp/yt-dlp
parent
47922adf9e
commit
b4c7dadad6
@ -1,15 +1,27 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exuo pipefail
|
set -exuo pipefail
|
||||||
|
|
||||||
python3 -m venv ~/yt-dlp-build-venv
|
function runpy {
|
||||||
|
case ${USE_PYTHON_VERSION:-} in
|
||||||
|
"3.11") python3.11 "$@";;
|
||||||
|
"3.13") python3.13 "$@";;
|
||||||
|
*) python3 "$@";;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
runpy -m venv ~/yt-dlp-build-venv
|
||||||
source ~/yt-dlp-build-venv/bin/activate
|
source ~/yt-dlp-build-venv/bin/activate
|
||||||
python3 -m devscripts.install_deps -o --include build
|
runpy -m devscripts.install_deps -o --include build
|
||||||
python3 -m devscripts.install_deps --include secretstorage --include curl-cffi --include pyinstaller
|
runpy -m devscripts.install_deps --include secretstorage --include curl-cffi --include pyinstaller
|
||||||
python3 -m devscripts.make_lazy_extractors
|
runpy -m devscripts.make_lazy_extractors
|
||||||
python3 devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}"
|
runpy devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}"
|
||||||
python3 -m bundle.pyinstaller --onedir
|
|
||||||
|
if [[ -z "${SKIP_ONEDIR_BUILD:-}" ]]; then
|
||||||
|
runpy -m bundle.pyinstaller --onedir
|
||||||
pushd "./dist/${EXE_NAME}"
|
pushd "./dist/${EXE_NAME}"
|
||||||
python3 -m zipfile -c "/build/${EXE_NAME}.zip" ./
|
runpy -m zipfile -c "/build/${EXE_NAME}.zip" ./
|
||||||
popd
|
popd
|
||||||
python3 -m bundle.pyinstaller
|
fi
|
||||||
|
|
||||||
|
runpy -m bundle.pyinstaller
|
||||||
mv "./dist/${EXE_NAME}" /build/
|
mv "./dist/${EXE_NAME}" /build/
|
||||||
|
Loading…
Reference in New Issue