Commit Graph

231 Commits

Author SHA1 Message Date
Florian Bruhin c0ffd6d327 scripts: Pass through Qt 6 to PyInstaller 2022-08-23 18:31:41 +02:00
Florian Bruhin a5a824f234 scripts: Initial Qt 6 support for build_release.py 2022-08-23 18:31:41 +02:00
Florian Bruhin ef486aa263 Remove unneeded old log ignores 2022-08-23 18:31:41 +02:00
Florian Bruhin 0dda1d41be ci: Fix regex for macOS log
The smoke test runs without debug logging, so the format is different.
2022-08-22 14:19:55 +02:00
Florian Bruhin e8cc163d84 scripts: Ignore new macOS 11 warning
Not sure where it's coming from, but it happened after swiching CI to macOS 11, and nobody has complained about it.
2022-08-22 13:59:23 +02:00
Florian Bruhin 52d98ad9aa build-release: Fix f-string, take 2 2022-06-22 16:02:57 +02:00
Florian Bruhin 208e56f0e9 build-release: Fix handling of Windows .zip suffix 2022-06-22 15:56:17 +02:00
Florian Bruhin 4e5b1d287d build-release: Fix f-string 2022-06-22 15:35:26 +02:00
Florian Bruhin f13af68cac build-release: Fix wrong path on Windows 2022-06-17 15:41:25 +02:00
Florian Bruhin 3b81525826 Fix lint 2022-06-16 21:06:38 +02:00
Florian Bruhin 660e776a15 build-release: Sign macOS .app properly
Based on https://github.com/pyinstaller/pyinstaller/issues/6612
Might help with #6771.
2022-06-16 21:03:20 +02:00
Florian Bruhin 611a6d5cb2 build-release: Modernize
pathlib, type annotations, modern syntax, dataclasses
2022-06-16 19:47:27 +02:00
Florian Bruhin 46de10722c build-release: Move macOS Info.plist back to PyInstaller .spec
The patching was originally introduced back in 2017 in #3055, when
PyInstaller only supported very basic Info.plist operations.

This changed in 2018 (!) however, with PyInstaller 3.4:
https://pyinstaller.org/en/stable/CHANGES-3.html#id8
https://github.com/pyinstaller/pyinstaller/pull/3532

Thus, let's move this back to PyInstaller. This produces exactly the
same Info.plist as before.

Fixes #7251
2022-06-16 17:52:35 +02:00
Florian Bruhin 9e2c5d493b build-release: Accept --skip-packaging on macOS 2022-06-16 16:23:07 +02:00
Florian Bruhin 23cc4d186c build-release: Add pre-dmg smoke test for macOS
Fixes #7254
2022-06-16 15:15:55 +02:00
Florian Bruhin f6a365172a Use legacy PDF.js build for macOS/Windows releases
Fixes #7108
2022-04-05 11:33:19 +02:00
Florian Bruhin f45dcb1aba pylint: Work around used-before-assignment issues
See https://github.com/PyCQA/pylint/issues/6035
2022-03-29 17:22:56 +02:00
Florian Bruhin 2378ba7886 scripts: Use 'build' to build sdist
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
2021-12-03 15:52:03 +01:00
Florian Bruhin 733868ff87 scripts: Run 'twine check' 2021-12-03 15:42:14 +01:00
Florian Bruhin a580079206 scripts: Handle packaging dependencies via tox 2021-12-03 15:28:04 +01:00
Florian Bruhin bbb44f6e50 Add some missing docstring params 2021-12-03 13:50:57 +01:00
Florian Bruhin ed2342a430 pylint: Handle consider-using-with 2021-12-02 17:30:47 +01:00
Florian Bruhin e6e7e95013 scripts: Use new Qt path in build_release 2021-10-21 18:18:36 +02:00
Florian Bruhin 51972fa4e2 Revert "scripts: Remove macOS symlinking"
This reverts commit a0bfb7c824.

It *is* required, just used the wrong path...

gg
2021-10-21 18:18:03 +02:00
Florian Bruhin a0bfb7c824 scripts: Remove macOS symlinking
Seems to be fixed in PyInstaller 4.4? See #6611.
2021-10-21 17:07:53 +02:00
Florian Bruhin 2782b750ae scripts: Add bluetooth permission for macOS
Apple documentation claims this is for iOS/watchOS/tvOS only:
https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothalwaysusagedescription

However, reality tells a different story - according to Console.app, when
visiting accounts.google.com, qutebrowser/Chromium needs this permission.

Reproducible as well using the following demo page:
https://googlechrome.github.io/samples/web-bluetooth/battery-level.html

Finally, Google Chrome has the key declared as well. Note that it has
NSBluetoothPeripheralUsageDescription as well:
https://developer.apple.com/documentation/bundleresources/information_property_list/nsbluetoothperipheralusagedescription

...but that is deprecated, and according to my tests on macOS 10.14 and 10.15,
it's not needed.

Thanks to Apple for their wonderful documentation.... not.

Fixes #6475, hopefully for real this time.
2021-06-15 15:22:26 +02:00
Florian Bruhin bae08ae386 Set permission strings in Info.plist
Fixes #6475
2021-05-25 15:25:49 +02:00
Florian Bruhin b1265cbeff Update PE checksum patching after PyInstaller update 2021-04-21 11:37:00 +02:00
Florian Bruhin 9aa8740ec9 scripts: Add --no-confirm to build_release 2021-04-13 12:48:51 +02:00
Florian Bruhin bbd71c4975 Support macOS dark mode for UI
Fixes #4430

Thanks to ftpd for testing!
2021-04-07 22:19:42 +02:00
Florian Bruhin 937b5885c3 ci: Add debug suffix to filenames 2021-03-29 23:42:14 +02:00
Florian Bruhin bce20c2995 scripts: Add --debug to build_release.py 2021-03-29 23:42:14 +02:00
Florian Bruhin 72fa0939c6 ci: Skip smoke test for debug build 2021-03-29 23:42:14 +02:00
Florian Bruhin 78ce753b09 ci: Move macOS dmg to dist/ 2021-03-29 23:42:14 +02:00
Florian Bruhin 52c2a9b2f2 scripts: Rename build_release args to --32bit and --64bit 2021-03-29 23:42:14 +02:00
Florian Bruhin 0a3945832b scripts: Ignore ERR_FILE_NOT_FOUND for smoke test
See #3719
2021-03-29 23:42:14 +02:00
Florian Bruhin 179d85274f scripts: Show debug run output on failed smoke test 2021-03-29 23:42:14 +02:00
Florian Bruhin 8a0d7a5be8 scripts: Pass GitHub token via commandline args 2021-03-29 23:42:14 +02:00
Florian Bruhin 2b9108113d scripts: Fix PE checksum for Windows releases
This should help with virus scanner false positives.

See https://github.com/pyinstaller/pyinstaller/issues/5579
Fixes #6081
Fixes #6194
2021-02-22 17:18:07 +01:00
Florian Bruhin 0df0985292 scripts: Improve macOS smoke test 2021-01-28 11:34:15 +01:00
Florian Bruhin 5ac9e3c23d scripts: Also add desc suffix for installer 2021-01-28 10:04:39 +01:00
Florian Bruhin d3b8b525b7 scripts: Actually use 32-bit Python on Windows 2021-01-28 09:31:26 +01:00
Florian Bruhin 62a06f8361 scripts: Adjust suffix for 32-bit releases 2021-01-28 08:32:05 +01:00
Florian Bruhin e43f8e016c Fix lint 2021-01-27 19:57:13 +01:00
Florian Bruhin 3a9770e2d7 scripts: Add suffix for 32-bit artifacts
See #6050
2021-01-27 19:40:20 +01:00
Florian Bruhin 05bb3942d4 scripts: Refactor Windows building 2021-01-27 19:24:18 +01:00
Florian Bruhin 3199efbe29 scripts: Fix build_release on Windows with --skip-32bit 2021-01-26 18:32:44 +01:00
Florian Bruhin 6d07d2cbf8 Fix string prefixes 2021-01-26 15:55:45 +01:00
Florian Bruhin b50f440948 scripts: Add more macOS smoke test warnings
See #4919
2021-01-26 15:28:09 +01:00
Florian Bruhin 1a4fff1a42 doc: Switch URLs to https 2021-01-26 15:19:01 +01:00
Florian Bruhin 2f918b9876 scripts: Rename --no-asciidoc to --skip-docs
For consistency
2021-01-26 10:20:11 +01:00
Florian Bruhin 222f1f19a1 Bump copyright years
Closes #6015
2021-01-20 20:06:19 +01:00
Florian Bruhin cbfce386d2 scripts: Allow skipping 32bit build 2021-01-19 18:13:28 +01:00
Florian Bruhin 2e65f731b1 scripts: Ignore DXVAVDA errors for smoke test
When trying to release in my Windows VM, I get:

    [1568:5924:1204/204551.986:ERROR:dxva_video_decode_accelerator_win.cc(1399)]
    DXVAVDA fatal error: could not LoadLibrary: mf.dll: The specified
    module could not be found. (0x7E)
    [1568:5924:1204/204551.986:ERROR:dxva_video_decode_accelerator_win.cc(1399)]
    DXVAVDA fatal error: could not LoadLibrary: mfplat.dll: The
    specified module could not be found. (0x7E)
    [1568:5924:1204/204551.986:ERROR:dxva_video_decode_accelerator_win.cc(1399)]
    DXVAVDA fatal error: could not LoadLibrary: msmpeg2vdec.dll: The
    specified module could not be found. (0x7E)
    [1568:5924:1204/204551.986:ERROR:dxva_video_decode_accelerator_win.cc(1407)]
    DXVAVDA fatal error: could not LoadLibrary: msvproc.dll: The
    specified module could not be found. (0x7E)

This seems to happen on Windows 10 N only, where the Windows Media
features (and thus probably DLLs) are missing.

See https://github.com/microsoft/playwright/issues/2901
2020-12-04 21:13:36 +01:00
Florian Bruhin 907e0cc33c build_release: Add --skip-packaging 2020-11-23 14:42:25 +01:00
Florian Bruhin 28bd35ed58 Simplify asciidoc arg 2020-09-16 21:13:47 +02:00
Florian Bruhin 5663bd24f5 Fix tox environment name for macOS
This was a regression introduced in
76eed0aa9c.
2020-09-16 21:12:36 +02:00
Florian Bruhin 76eed0aa9c tox: Simplify pyinstaller envs 2020-07-30 16:23:05 +02:00
Florian Bruhin 9eedfabd69 scripts: Save .zip files in dist/ in build_release.py 2020-07-06 14:21:56 +02:00
Florian Bruhin 00d316c011 Check git tree before doing a release
See #5426
2020-05-10 19:35:28 +02:00
Florian Bruhin 14fd4860e4 build_release: Separate 32/64-bit pyinstaller envs on Windows
For some reason, pip fails now when trying to "update" the existing source
clone...
2020-04-27 16:29:00 +02:00
Florian Bruhin c799b7ddf6 scripts: Print errors to stderr instead of stdout 2020-04-21 09:56:34 +02:00
Florian Bruhin ef94fb8626 build_release: Check for existing assets 2020-04-18 14:06:03 +02:00
Florian Bruhin 32c2f9b240 build_release: Print version when asking for confirmation 2020-04-18 14:03:34 +02:00
Florian Bruhin 84062eb53c Switch back to develop branch of pyinstaller
Reverts 478bdc3ba9.
Reverts 755a2999e2.

See https://github.com/pyinstaller/pyinstaller/issues/4631
See #4918
2020-02-10 20:29:58 +01:00
Florian Bruhin 68f8592abf build_release: Move print inside while 2020-02-02 22:54:31 +01:00
Florian Bruhin 478bdc3ba9 build_release: Copy missing QtQmlModels.framework
See https://github.com/pyinstaller/pyinstaller/issues/4631
See #4918
2020-01-15 15:31:01 +01:00
Florian Bruhin fa56b68de2 Revert "build_release: Re-add windows patching"
This reverts commit d37843d137.

Not needed anymore with PyInstaller 3.6
2020-01-10 17:06:20 +01:00
Florian Bruhin 9e4276db9b Adjust copyrights for 2020 2020-01-04 18:21:17 +01:00
Florian Bruhin 21e9b9b41f Specify 'check' with subprocess.run 2019-10-01 11:54:18 +02:00
Florian Bruhin 4f76266a4b build_release: Ignore another macOS smoke test line 2019-09-26 18:26:35 +02:00
Florian Bruhin db21962d78 build_release: Print uploaded file 2019-09-25 23:23:31 +02:00
Florian Bruhin 8f7e232722 build_release: Improve handling of half-uploaded release 2019-09-25 22:06:46 +02:00
Florian Bruhin 6cd30be9bd build_release: Set asset description directly 2019-09-25 21:17:58 +02:00
Florian Bruhin f2a09a97b2 build_release: Add retry functionality for GitHub upload 2019-09-25 21:09:44 +02:00
Florian Bruhin ebad75f915 macOS: Ignore new smoke test line
See #4919
2019-09-25 17:59:17 +02:00
Florian Bruhin 81a5ada67f Fix lint 2019-07-18 17:30:37 +02:00
Florian Bruhin b4d2547b94 build_release: Clean up getting path from registry 2019-07-18 16:19:18 +02:00
Florian Bruhin 26d316a94c Add issue links 2019-07-18 16:14:17 +02:00
Florian Bruhin d37843d137 build_release: Re-add windows patching
Looks like we need some patching again nowadays...
This reverts commit 7763287b10.
2019-07-18 15:31:25 +02:00
Florian Bruhin 730018e37e Check stdout/stderr of processes when running smoke test 2019-07-18 14:31:42 +02:00
Florian Bruhin dfabbff63b build_release: Improve sdist building 2019-07-18 12:25:16 +02:00
Florian Bruhin b51d0cba51 Merge remote-tracking branch 'origin/pr/4086' 2019-07-11 11:01:30 +02:00
Florian Bruhin c6d98c9f7e Fix version bumping style issues 2019-07-11 10:56:16 +02:00
Florian Bruhin 16a591e887 Merge remote-tracking branch 'origin/pr/4304' 2019-07-11 10:47:28 +02:00
Florian Bruhin 093fe765fa Adjust QtWebEngineCore.framework path 2019-06-18 14:01:31 +02:00
Florian Bruhin e5fd87e64d Fix lint/docs 2019-02-25 13:12:25 +01:00
Florian Bruhin 81eee2b989 windows: Bring back 32-bit support
Qt 5.12 brought back 32-bit Windows releases for QtWebEngine.

Reverts 0af8eec73a
Reverts 7a9183d0b7
Fixes #4598
2019-02-23 17:16:41 +01:00
Jay Kamat 3e816f5f8b
Update copyright for 2019 2019-02-22 21:45:08 -08:00
Florian Bruhin b5253ec473 Fix lint 2018-11-28 13:01:43 +01:00
Florian Bruhin 2237ca2bcf Remove now unneeded pylint suppressions 2018-11-28 12:54:19 +01:00
Andy Mender 41402cb45f Remove update_version.py from build_release.py pipeline 2018-10-07 18:03:55 +02:00
Andy Mender d6be4aa645 Remove misleading 'version tag' comment from scripts/dev/build_release.py 2018-10-07 17:31:57 +02:00
Andy Mender 5231b25759 Move appdata_path to qutebrowser.__init__.py and improve code style 2018-10-07 12:49:25 +02:00
Andy Mender 21e49cf958 Add update_version.py to build_release.py pipeline and update command-line args 2018-10-07 11:56:28 +02:00
Florian Bruhin 300ddce288 Re-add PDF.js download to build_release.py 2018-09-24 15:39:07 +02:00
Florian Bruhin 7c134cdb20 Fix lint 2018-09-24 12:44:31 +02:00
Florian Bruhin 737db48c14 build_release: Patch macOS app to save some space 2018-09-22 18:22:48 +02:00
Florian Bruhin d97e1741e0 Remove most macOS patching
Closes #4232
2018-09-22 09:57:49 +02:00
Florian Bruhin d4e388f9d5 Do exist_ok at the right place... 2018-09-19 15:14:24 +02:00