summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-11-23 14:08:50 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-11-23 20:45:06 +0100
commit417934830a45ad2bcbd6f418233f95ccd6d86e8b (patch)
tree297a7d94bca3fc2934b9444ca455ba254fb350c9
parentbb0d2ccfb006c71d72a9d4b1cef8cea89b342851 (diff)
downloadqutebrowser-417934830a45ad2bcbd6f418233f95ccd6d86e8b.tar.gz
qutebrowser-417934830a45ad2bcbd6f418233f95ccd6d86e8b.zip
build_release: Add --skip-packaging
(cherry picked from commit 907e0cc33c02bb5df348a12251106755fc569137)
-rwxr-xr-xscripts/dev/build_release.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index 8030d61a1..6044a1e18 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -252,7 +252,7 @@ def _get_windows_python_path(x64):
return fallback
-def build_windows():
+def build_windows(*, skip_packaging):
"""Build windows executables/setups."""
utils.print_title("Updating 3rdparty content")
update_3rdparty.run(nsis=True, ace=False, pdfjs=True, fancy_dmg=False)
@@ -289,6 +289,14 @@ def build_windows():
utils.print_title("Running 64bit smoke test")
smoke_test(os.path.join(out_64, 'qutebrowser.exe'))
+ if not skip_packaging:
+ artifacts += _package_windows(out_32, out_64)
+
+ return artifacts
+
+
+def _package_windows(out_32, out_64):
+ """Build installers/zips for Windows."""
utils.print_title("Building installers")
subprocess.run(['makensis.exe',
'/DVERSION={}'.format(qutebrowser.__version__),
@@ -301,7 +309,7 @@ def build_windows():
name_32 = 'qutebrowser-{}-win32.exe'.format(qutebrowser.__version__)
name_64 = 'qutebrowser-{}-amd64.exe'.format(qutebrowser.__version__)
- artifacts += [
+ artifacts = [
(os.path.join('dist', name_32),
'application/vnd.microsoft.portable-executable',
'Windows 32bit installer'),
@@ -465,7 +473,9 @@ def main():
"If not given, the current Python interpreter is used.",
nargs='?')
parser.add_argument('--upload', action='store_true', required=False,
- help="Toggle to upload the release to GitHub")
+ help="Toggle to upload the release to GitHub.")
+ parser.add_argument('--skip-packaging', action='store_true', required=False,
+ help="Skip Windows installer/zip generation.")
args = parser.parse_args()
utils.change_cwd()
@@ -487,7 +497,7 @@ def main():
run_asciidoc2html(args)
if os.name == 'nt':
- artifacts = build_windows()
+ artifacts = build_windows(skip_packaging=args.skip_packaging)
elif sys.platform == 'darwin':
artifacts = build_mac()
else: