Compare commits

...

3 Commits

Author SHA1 Message Date
bashonly f2b7821c18
remove pyinstaller name arg
Authored by: bashonly
3 weeks ago
bashonly 1210a4ac13
[update] Correct exe path for static builds
Authored by: bashonly
3 weeks ago
bashonly 6794e5060a
docker group
Authored by: bashonly
3 weeks ago

@ -156,7 +156,7 @@ jobs:
mkdir ~/build
cd bundle/docker
docker compose up --build static
sudo chown "${USER}:${USER}" ~/build/yt-dlp_linux
sudo chown "${USER}:docker" ~/build/yt-dlp_linux
- name: Verify --update-to
if: vars.UPDATE_TO_VERIFICATION
run: |

@ -5,7 +5,7 @@ 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 --name yt-dlp_linux
python -m bundle.pyinstaller
deactivate
source ~/.local/share/pipx/venvs/staticx/bin/activate

@ -69,6 +69,10 @@ def _get_variant_and_executable_path():
# Ref: https://en.wikipedia.org/wiki/Uname#Examples
if machine[1:] in ('x86', 'x86_64', 'amd64', 'i386', 'i686'):
machine = '_x86' if platform.architecture()[0][:2] == '32' else ''
# sys.executable returns a /tmp/ path for staticx builds (linux_static)
# Ref: https://staticx.readthedocs.io/en/latest/usage.html#run-time-information
if static_exe_path := os.getenv('STATICX_PROG_PATH'):
path = static_exe_path
return f'{remove_end(sys.platform, "32")}{machine}_exe', path
path = os.path.dirname(__file__)

Loading…
Cancel
Save