mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Linux installer: Detect ARM 64bit as well as 32bit
This commit is contained in:
parent
e0e0714426
commit
1c66024316
@ -746,7 +746,7 @@ def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_
|
|||||||
if not ignore_umask and not isolated:
|
if not ignore_umask and not isolated:
|
||||||
check_umask()
|
check_umask()
|
||||||
machine = os.uname()[4]
|
machine = os.uname()[4]
|
||||||
if machine and machine.lower().startswith('arm'):
|
if machine and machine.lower().startswith('arm') or machine.lower().startswith('aarch'):
|
||||||
raise SystemExit(
|
raise SystemExit(
|
||||||
'You are running on an ARM system. The calibre binaries are only'
|
'You are running on an ARM system. The calibre binaries are only'
|
||||||
' available for x86 systems. You will have to compile from'
|
' available for x86 systems. You will have to compile from'
|
||||||
|
@ -795,7 +795,7 @@ def main(install_dir=None, isolated=False, bin_dir=None, share_dir=None, ignore_
|
|||||||
if not ignore_umask and not isolated:
|
if not ignore_umask and not isolated:
|
||||||
check_umask()
|
check_umask()
|
||||||
machine = os.uname()[4]
|
machine = os.uname()[4]
|
||||||
if machine and machine.lower().startswith('arm'):
|
if machine and machine.lower().startswith('arm') or machine.lower().startswith('aarch'):
|
||||||
raise SystemExit(
|
raise SystemExit(
|
||||||
'You are running on an ARM system. The calibre binaries are only'
|
'You are running on an ARM system. The calibre binaries are only'
|
||||||
' available for x86 systems. You will have to compile from'
|
' available for x86 systems. You will have to compile from'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user