aboutsummaryrefslogtreecommitdiffstats
path: root/pyinst.py
diff options
context:
space:
mode:
authorMrOctopus <shock.game@hotmail.com>2022-11-11 02:49:24 +0100
committerGitHub <noreply@github.com>2022-11-11 07:19:24 +0530
commit17fc3dc48af968e28c23197ed06542fdb47aba2b (patch)
treef0cf3623f21ce704c3eb5e894a70b518cbc31e31 /pyinst.py
parent3f5c216969165c4a0583a4795e4d15325dc009d4 (diff)
downloadhypervideo-pre-17fc3dc48af968e28c23197ed06542fdb47aba2b.tar.lz
hypervideo-pre-17fc3dc48af968e28c23197ed06542fdb47aba2b.tar.xz
hypervideo-pre-17fc3dc48af968e28c23197ed06542fdb47aba2b.zip
[build] Create armv7l and aarch64 releases (#5449)
Closes #5436 Authored by: MrOctopus, pukkandan
Diffstat (limited to 'pyinst.py')
-rw-r--r--pyinst.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyinst.py b/pyinst.py
index 0b7c66a30..17c950563 100644
--- a/pyinst.py
+++ b/pyinst.py
@@ -12,9 +12,8 @@ from PyInstaller.__main__ import run as run_pyinstaller
from devscripts.utils import read_version
-OS_NAME, MACHINE, ARCH = sys.platform, platform.machine(), platform.architecture()[0][:2]
-if MACHINE in ('x86_64', 'AMD64') or ('i' in MACHINE and '86' in MACHINE):
- # NB: Windows x86 has MACHINE = AMD64 irrespective of bitness
+OS_NAME, MACHINE, ARCH = sys.platform, platform.machine().lower(), platform.architecture()[0][:2]
+if MACHINE in ('x86', 'x86_64', 'amd64', 'i386', 'i686'):
MACHINE = 'x86' if ARCH == '32' else ''
@@ -63,7 +62,7 @@ def exe(onedir):
name = '_'.join(filter(None, (
'yt-dlp',
{'win32': '', 'darwin': 'macos'}.get(OS_NAME, OS_NAME),
- MACHINE
+ MACHINE,
)))
return name, ''.join(filter(None, (
'dist/',