mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Command to build linux ARM intaller
This commit is contained in:
parent
88ef56f5cc
commit
7253b7da10
@ -19,12 +19,12 @@ __all__ = [
|
|||||||
'upload_installers',
|
'upload_installers',
|
||||||
'upload_user_manual', 'upload_demo', 'reupload',
|
'upload_user_manual', 'upload_demo', 'reupload',
|
||||||
'stage1', 'stage2', 'stage3', 'stage4', 'stage5', 'publish', 'publish_betas',
|
'stage1', 'stage2', 'stage3', 'stage4', 'stage5', 'publish', 'publish_betas',
|
||||||
'linux', 'linux32', 'linux64', 'win', 'win32', 'win64', 'osx', 'build_dep',
|
'linux', 'linux32', 'linux64', 'linuxarm64', 'win', 'win32', 'win64', 'osx', 'build_dep',
|
||||||
'export_packages', 'hyphenation', 'liberation_fonts', 'csslint'
|
'export_packages', 'hyphenation', 'liberation_fonts', 'csslint'
|
||||||
]
|
]
|
||||||
|
|
||||||
from setup.installers import Linux, Win, OSX, Linux32, Linux64, Win32, Win64, ExtDev, BuildDep, ExportPackages
|
from setup.installers import Linux, Win, OSX, Linux32, Linux64, LinuxArm64, Win32, Win64, ExtDev, BuildDep, ExportPackages
|
||||||
linux, linux32, linux64 = Linux(), Linux32(), Linux64()
|
linux, linux32, linux64, linuxarm64 = Linux(), Linux32(), Linux64(), LinuxArm64()
|
||||||
win, win32, win64 = Win(), Win32(), Win64()
|
win, win32, win64 = Win(), Win32(), Win64()
|
||||||
osx = OSX()
|
osx = OSX()
|
||||||
extdev = ExtDev()
|
extdev = ExtDev()
|
||||||
|
@ -140,24 +140,30 @@ class BuildInstaller(Command):
|
|||||||
class BuildInstallers(BuildInstaller):
|
class BuildInstallers(BuildInstaller):
|
||||||
|
|
||||||
OS = ''
|
OS = ''
|
||||||
|
ALL_ARCHES = '64', '32'
|
||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
bits = '64 32'.split()
|
for bitness in self.ALL_ARCHES:
|
||||||
for bitness in bits:
|
shutdown = bitness is self.ALL_ARCHES[-1] and not opts.dont_shutdown
|
||||||
shutdown = bitness is bits[-1] and not opts.dont_shutdown
|
|
||||||
build_single(self.OS, bitness, shutdown)
|
build_single(self.OS, bitness, shutdown)
|
||||||
|
|
||||||
|
|
||||||
class Linux32(BuildInstaller):
|
class Linux32(BuildInstaller):
|
||||||
OS = 'linux'
|
OS = 'linux'
|
||||||
BITNESS = '32'
|
BITNESS = '32'
|
||||||
description = 'Build the 32-bit linux calibre installer'
|
description = 'Build the 32-bit Linux calibre installer'
|
||||||
|
|
||||||
|
|
||||||
class Linux64(BuildInstaller):
|
class Linux64(BuildInstaller):
|
||||||
OS = 'linux'
|
OS = 'linux'
|
||||||
BITNESS = '64'
|
BITNESS = '64'
|
||||||
description = 'Build the 64-bit linux calibre installer'
|
description = 'Build the 64-bit Linux calibre installer'
|
||||||
|
|
||||||
|
|
||||||
|
class LinuxArm64(BuildInstaller):
|
||||||
|
OS = 'linux'
|
||||||
|
BITNESS = 'arm64'
|
||||||
|
description = 'Build the 64-bit ARM Linux calibre installer'
|
||||||
|
|
||||||
|
|
||||||
class Win32(BuildInstaller):
|
class Win32(BuildInstaller):
|
||||||
@ -178,6 +184,7 @@ class OSX(BuildInstaller):
|
|||||||
|
|
||||||
class Linux(BuildInstallers):
|
class Linux(BuildInstallers):
|
||||||
OS = 'linux'
|
OS = 'linux'
|
||||||
|
ALL_ARCHES = '64', '32', 'arm64'
|
||||||
|
|
||||||
|
|
||||||
class Win(BuildInstallers):
|
class Win(BuildInstallers):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user