Commit Graph

190 Commits

Author SHA1 Message Date
Philipp Wolfer
db3ff8969a Use binary builds of libdiscid for macOS 2023-02-28 22:05:10 +01:00
Philipp Wolfer
c4c66df644 Package libdiscid 0.6.3 for Windows and macOS builds 2023-02-28 22:05:10 +01:00
Philipp Wolfer
179d8948b1 PICARD-2605: Ensure packaged Qt5 DLLs get loaded
PyInstaller 5.4 changed the location of the Qt5 DLLs. This bypassed our prioritization of packaged DLLs.
2023-01-06 16:18:14 +01:00
Philipp Wolfer
bb1014bc19 Use different Python versions for different macOS builds 2022-12-21 10:20:54 +01:00
Philipp Wolfer
0a9b259e43 Build macOS packages with latest Python 3.11 2022-12-20 21:49:21 +01:00
Philipp Wolfer
1233d45336 PICARD-2192: Build macOS packages with fpcalc universal
Allows native ARM support for fpcalc. Partially addresses PICARD-2192
2022-12-16 18:31:14 +01:00
Philipp Wolfer
05ec3d5f5f Make setting the publisher based on certificate subject part of APPX build script 2022-10-31 16:28:24 +01:00
Philipp Wolfer
45f1e1a21d Use environment variable PICARD_BUILD_PORTABLE to trigger portable build
Fixes latest pyinstaller no longer accepting the --onefile parameter if called with a spec.
2022-07-22 10:19:28 +02:00
Philipp Wolfer
5e3fa405af PICARD-2422: Removed packaging of AB streaming extractor 2022-02-16 11:46:21 +01:00
Philipp Wolfer
29ed9d79d2 PICARD-2395: Fixed building for macOS 2022-01-12 08:54:21 +01:00
Philipp Wolfer
c511137ef6 Revert "Removed Qt translations workaround no longer needed with current PyInstaller"
This reverts commit 5f0e598385.
2022-01-12 08:54:21 +01:00
Philipp Wolfer
197efffec1 packaging: Verify SHA256 hashes of downloaded Windows dependencies 2021-12-25 17:37:54 +01:00
Philipp Wolfer
42508ec5d3 Enclose command parameters in quotation marks 2021-12-24 14:15:17 +01:00
Philipp Wolfer
471065964c packaging: verify checksums for macOS downloaded dependencies 2021-12-24 12:30:06 +01:00
Philipp Wolfer
f8f007e8a4 fix-header: Skip resource.py 2021-12-20 14:57:58 +01:00
Philipp Wolfer
af7d8d8c02 Support --encoding parameter in fix-header.py
The default encoding can be different based on the platform, but we expect UTF-8 for our source files. To stay flexible, make the default encoding UTF-8, but add a command line parameter to change it.
2021-12-20 14:57:58 +01:00
Laurent Monin
368221b840 Workaround hdiutil: create failed - Resource busy with a loop/delay 2021-12-03 12:54:52 +01:00
Laurent Monin
14ce07756e Update Copyright headers, with the help of fix-headers.py script 2021-11-10 21:38:54 +01:00
Philipp Wolfer
2f34f3cd2e Fixed appx signing 2021-11-10 15:05:56 +01:00
Philipp Wolfer
f22c3ea965 Use SecureString in Windows Powershell packaging script 2021-11-10 14:59:42 +01:00
Philipp Wolfer
cb6973cf44 Use sets instead of lists in conditionals 2021-10-31 10:17:23 +01:00
Philipp Wolfer
0864ebaac3 PICARD-2291: Avoid loading PyQt in PyInstaller hooks
Hooks run before PyInstaller has setup the environment. Also avoid monkey patching Picard and use environment variables instead.
2021-10-17 11:52:14 +02:00
Philipp Wolfer
fb37df7ef8 PICARD-2291: Fix DLL search path in Windows portable install
Move setting the PATH to include the package folder earlier in the PyInstaller hooks.
2021-10-17 11:52:14 +02:00
Philipp Wolfer
52e64f16c0 macOS: Build with newer essentia extractor binary
Use the for now unofficial builds from https://github.com/phw/essentia-extractor-builds/releases/tag/v2.1_beta2_1 which are compiled with newer SDK. The official binaries cannot be used because they cannot be notarized.
2021-10-06 08:24:48 +02:00
Philipp Wolfer
f53a35eee6 PICARD-2189: Add appdirs module to fix getting proper cache location
The cache location previously was wrong because it was created before app and org name had been set. The new module fixes this and allows more flexible replacement of the implementation.
2021-09-26 11:43:42 +02:00
Philipp Wolfer
2422d74cb3 macOS: Handle different command line syntax for xpath on Big Sur 2021-09-25 14:52:37 +02:00
Philipp Wolfer
5f0e598385 Removed Qt translations workaround no longer needed with current PyInstaller 2021-09-25 14:50:11 +02:00
a1346054
990bec0460 Fix whitespace 2021-08-29 15:02:06 +02:00
a1346054
f086f61575 Fix shellcheck warnings 2021-08-29 15:02:06 +02:00
a1346054
f0927699dd Invoke bash using /usr/bin/env 2021-08-29 15:02:06 +02:00
Philipp Wolfer
d9d748e423 Skip bundling essentia-extractor in macOS builds for now
Workaround to fix macOS notarization until we get an essentia extractor build with macOS SDK 10.9 or later
2021-08-23 17:25:01 +02:00
Gabriel Ferreira
f42f78b0de AcousticBrainz feature extraction and submission support
Co-authored-by: Laurent Monin <github@norz.org>
Co-authored-by: Philipp Wolfer <ph.wolfer@gmail.com>
2021-08-22 12:46:57 +02:00
Philipp Wolfer
bba20a28ab Allow disabling graphical crash handler with --no-crash-dialog
This is mainly for running Picard in CI environments and debugging
2021-05-17 17:54:21 +02:00
Philipp Wolfer
d2b0afcf77 Merge pull request #1800 from phw/PICARD-1718-crash-handler
PICARD-1718: crash handler
2021-05-07 16:17:06 +02:00
Laurent Monin
339c5187d2 Add a bunch of aliases to fix-header script 2021-05-04 17:26:32 +02:00
Philipp Wolfer
c960089b80 PICARD-1718: Moved crash handler code into central function
Avoid code duplication, by still having a rather minimal dependency of internal code.
2021-05-04 16:12:50 +02:00
Philipp Wolfer
0c5d908a4c PICARD-1718: Show more details in crash dialog
Also set stack trace into the detailedText. Nicer display and ensures eventual HTML inside this string does not get rendered.
2021-05-04 16:12:49 +02:00
Philipp Wolfer
70e6dfd233 PICARD-1718: Use NamedTemporaryFile for creating log file 2021-05-04 16:12:49 +02:00
Philipp Wolfer
b9a7219ecd PICARD-1718: Do not print logfile location if writing log failed 2021-05-04 16:12:49 +02:00
Philipp Wolfer
29fdacc8ca PICARD-1718: Try to log and show exception details on crash
If Picard crashes try to log the traceback to a file and show a dialog to the user before exiting.
2021-05-04 16:12:48 +02:00
Philipp Wolfer
6ac80aaf82 Double quote parameters in shell scripts 2021-04-06 17:58:19 +02:00
Philipp Wolfer
be7b578c75 PICARD-1943: Fix macOS app signature breaking on macOS 10.12/10.13
Avoid signature being written to extended file system attributes by moving resource files to Contents/Resources.
2020-12-31 20:15:54 +01:00
Philipp Wolfer
19bafa2999 macOS: Only test package after build if it was codesigned
Without code signing this will likely fail due to signature errors
2020-12-26 16:53:41 +01:00
Philipp Wolfer
3c50b3ea4e More verbose output in macOS build script 2020-12-26 16:41:54 +01:00
Philipp Wolfer
293c2c730f macos: build with Python 3.9.1 2020-12-26 15:30:13 +01:00
Philipp Wolfer
09aa1b7467 macos: verify notarization and code signature 2020-12-26 15:30:12 +01:00
Philipp Wolfer
8d8e8c186c Create separate builds for macOS 10.12+ and 10.14+ 2020-12-26 15:30:12 +01:00
Philipp Wolfer
1814a02313 Update macOS distribution certificate
Update the mechanism to work exactly as we do it for the Windows code signing.
2020-10-28 14:23:45 +01:00
Philipp Wolfer
0a5aba7c8f PICARD-1958: Add a symlink to /Applications to macOS DMG 2020-10-02 20:06:32 +02:00
Philipp Wolfer
d7b1dae98b macOS: Handle OS version 11.0 in package script (#1646) 2020-10-02 20:03:07 +02:00