Download pdfjs in build_release.py.
freeze.py now optionally includes pdfjs if it's present. This means we don't need to download it every time to run frozen tests, but we can include it in build_release.py when building a windows package.
This commit is contained in:
parent
e05bc20885
commit
5b68092277
@ -35,6 +35,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
|
|||||||
|
|
||||||
import qutebrowser
|
import qutebrowser
|
||||||
from scripts import utils
|
from scripts import utils
|
||||||
|
from scripts.dev import update_3rdparty
|
||||||
|
|
||||||
|
|
||||||
def call_script(name, *args, python=sys.executable):
|
def call_script(name, *args, python=sys.executable):
|
||||||
@ -89,6 +90,9 @@ def smoke_test(executable):
|
|||||||
|
|
||||||
def build_windows():
|
def build_windows():
|
||||||
"""Build windows executables/setups."""
|
"""Build windows executables/setups."""
|
||||||
|
utils.print_title("Updating 3rdparty content")
|
||||||
|
update_3rdparty.main()
|
||||||
|
|
||||||
utils.print_title("Building Windows binaries")
|
utils.print_title("Building Windows binaries")
|
||||||
parts = str(sys.version_info.major), str(sys.version_info.minor)
|
parts = str(sys.version_info.major), str(sys.version_info.minor)
|
||||||
ver = ''.join(parts)
|
ver = ''.join(parts)
|
||||||
|
@ -65,9 +65,13 @@ def get_build_exe_options(skip_html=False):
|
|||||||
('qutebrowser/git-commit-id', 'git-commit-id'),
|
('qutebrowser/git-commit-id', 'git-commit-id'),
|
||||||
('qutebrowser/utils/testfile', 'utils/testfile'),
|
('qutebrowser/utils/testfile', 'utils/testfile'),
|
||||||
('qutebrowser/html', 'html'),
|
('qutebrowser/html', 'html'),
|
||||||
('qutebrowser/3rdparty/pdfjs', '3rdparty/pdfjs'),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if os.path.exists(os.path.join('qutebrowser', '3rdparty', 'pdfjs')):
|
||||||
|
include_files.append(('qutebrowser/3rdparty/pdfjs', '3rdparty/pdfjs'))
|
||||||
|
else:
|
||||||
|
print("Warning: excluding pdfjs as it's not present!")
|
||||||
|
|
||||||
if not skip_html:
|
if not skip_html:
|
||||||
include_files += [
|
include_files += [
|
||||||
('qutebrowser/html/doc', 'html/doc'),
|
('qutebrowser/html/doc', 'html/doc'),
|
||||||
|
Loading…
Reference in New Issue
Block a user