summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-29 15:08:33 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-03-29 23:42:14 +0200
commit52c2a9b2f2d2b5a0aaf9e761d7c16368910f4923 (patch)
tree339aa76b7f038e083274cc4b13798e4209f1f960 /scripts
parent0a3945832b65602d3315725975e8d92b86cd7779 (diff)
downloadqutebrowser-52c2a9b2f2d2b5a0aaf9e761d7c16368910f4923.tar.gz
qutebrowser-52c2a9b2f2d2b5a0aaf9e761d7c16368910f4923.zip
scripts: Rename build_release args to --32bit and --64bit
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dev/build_release.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index b7eda5750..413739413 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -374,7 +374,7 @@ def _build_windows_single(*, x64, skip_packaging):
)
-def build_windows(*, gh_token, skip_packaging, skip_32bit, skip_64bit):
+def build_windows(*, gh_token, skip_packaging, only_32bit, only_64bit):
"""Build windows executables/setups."""
utils.print_title("Updating 3rdparty content")
update_3rdparty.run(nsis=True, ace=False, pdfjs=True, fancy_dmg=False,
@@ -388,9 +388,9 @@ def build_windows(*, gh_token, skip_packaging, skip_32bit, skip_64bit):
utils.print_title("Updating VersionInfo file")
gen_versioninfo.main()
- if not skip_64bit:
+ if not only_32bit:
artifacts += _build_windows_single(x64=True, skip_packaging=skip_packaging)
- if not skip_32bit:
+ if not only_64bit:
artifacts += _build_windows_single(x64=False, skip_packaging=skip_packaging)
return artifacts
@@ -582,10 +582,10 @@ def main():
help="Toggle to upload the release to GitHub.")
parser.add_argument('--skip-packaging', action='store_true', required=False,
help="Skip Windows installer/zip generation.")
- parser.add_argument('--skip-32bit', action='store_true', required=False,
- help="Skip Windows 32 bit build.")
- parser.add_argument('--skip-64bit', action='store_true', required=False,
- help="Skip Windows 64 bit build.")
+ parser.add_argument('--32bit', action='store_true', required=False,
+ help="Skip Windows 64 bit build.", dest='only_32bit')
+ parser.add_argument('--64bit', action='store_true', required=False,
+ help="Skip Windows 32 bit build.", dest='only_64bit')
args = parser.parse_args()
utils.change_cwd()
@@ -612,8 +612,8 @@ def main():
artifacts = build_windows(
gh_token=gh_token,
skip_packaging=args.skip_packaging,
- skip_32bit=args.skip_32bit,
- skip_64bit=args.skip_64bit,
+ only_32bit=args.only_32bit,
+ only_64bit=args.only_64bit,
)
elif sys.platform == 'darwin':
artifacts = build_mac(gh_token=gh_token)