aboutsummaryrefslogtreecommitdiff
path: root/bundle/docker/static/entrypoint.sh
diff options
context:
space:
mode:
authorSimon Sawicki <contact@grub4k.xyz>2024-04-29 00:19:25 +0200
committerGitHub <noreply@github.com>2024-04-28 22:19:25 +0000
commitac817bc83efd939dca3e40c4b527d0ccfc77172b (patch)
tree5c3a46117f018866d45076f6b9b55a13330bdbd9 /bundle/docker/static/entrypoint.sh
parent1a366403d9c26b992faa77e00f4d02ead57559e3 (diff)
[build] Migrate `linux_exe` to static musl builds (#9811)
Authored by: Grub4K, bashonly Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
Diffstat (limited to 'bundle/docker/static/entrypoint.sh')
-rwxr-xr-xbundle/docker/static/entrypoint.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/bundle/docker/static/entrypoint.sh b/bundle/docker/static/entrypoint.sh
new file mode 100755
index 000000000..93d84fa9b
--- /dev/null
+++ b/bundle/docker/static/entrypoint.sh
@@ -0,0 +1,13 @@
+#!/bin/ash
+set -e
+
+source ~/.local/share/pipx/venvs/pyinstaller/bin/activate
+python -m devscripts.install_deps --include secretstorage
+python -m devscripts.make_lazy_extractors
+python devscripts/update-version.py -c "${channel}" -r "${origin}" "${version}"
+python -m bundle.pyinstaller
+deactivate
+
+source ~/.local/share/pipx/venvs/staticx/bin/activate
+staticx /yt-dlp/dist/yt-dlp_linux /build/yt-dlp_linux
+deactivate