mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Make the built py3 sw available for CI
This commit is contained in:
parent
605857e276
commit
817c7663d4
@ -199,7 +199,7 @@ class ExportPackages(Command):
|
|||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
base, bypy = get_paths()
|
base, bypy = get_paths()
|
||||||
exe = get_exe()
|
exe = get_exe()
|
||||||
cmd = [exe, bypy, 'export'] + list(opts.cli_args) + ['download.calibre-ebook.com:/srv/download/ci/calibre']
|
cmd = [exe, bypy, 'export'] + list(opts.cli_args) + ['download.calibre-ebook.com:/srv/download/ci/calibre3']
|
||||||
ret = subprocess.Popen(cmd).wait()
|
ret = subprocess.Popen(cmd).wait()
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise SystemExit(ret)
|
raise SystemExit(ret)
|
||||||
|
@ -34,7 +34,7 @@ def download_file(url):
|
|||||||
def sw():
|
def sw():
|
||||||
sw = os.environ['SW']
|
sw = os.environ['SW']
|
||||||
os.chdir(sw)
|
os.chdir(sw)
|
||||||
url = 'https://download.calibre-ebook.com/ci/calibre/windows-64.tar.xz'
|
url = 'https://download.calibre-ebook.com/ci/calibre3/windows-64.tar.xz'
|
||||||
tarball = download_file(url)
|
tarball = download_file(url)
|
||||||
with tarfile.open(fileobj=io.BytesIO(tarball)) as tf:
|
with tarfile.open(fileobj=io.BytesIO(tarball)) as tf:
|
||||||
tf.extractall()
|
tf.extractall()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user