Commit Graph

166 Commits

Author SHA1 Message Date
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
Philipp Wolfer
c0bc9735d9 Added tag-release.sh script to create the release tags
This makes it easier to have consistent release tags and avoid mistakes.
2020-09-09 13:18:31 +02:00
Philipp Wolfer
a52f97b133 PICARD-1935: Include tests in sdist
Verify in CI the sdist package is complete and passes tests.
2020-09-04 13:38:27 +02:00
Philipp Wolfer
cba7de3c73 PICARD-1763: Ensure macOS working dir is not the app dir\n\nAvoids crashes on startup 2020-07-18 12:46:34 +02:00
Philipp Wolfer
069428c8fc win_setup: Log versions of downloaded libdiscid / fpcalc 2020-06-18 10:19:13 +02:00
Philipp Wolfer
fb83a8e76b Enable flake8 E265: Block comment should start with '# '
Most changes involve replacing non-breaking space with a simple space after the #.
2020-05-13 11:03:13 +02:00
Philipp Wolfer
b50b14a093 Upgrade to fpcalc 1.5.0 for Windows and macOS builds 2020-04-17 22:00:29 +02:00
Philipp Wolfer
fc87a788a9 fix-header.py: Update alias list 2020-02-24 15:44:26 +01:00
Laurent Monin
6b5e852a60 Run fix-header on *.py 2020-02-24 10:25:09 +01:00
Laurent Monin
9093abdff7 fix-header.py: output progress message (to stderr) 2020-02-24 10:07:53 +01:00
Laurent Monin
2f8985a478 fix-header.py: Fix IndexError when file is empty 2020-02-24 10:07:05 +01:00
Laurent Monin
8dce9b1342 Add support for fix-header: skip, to ignore a file
Comment formats supported:
#
/* */
//
2020-02-22 13:52:36 +01:00
Philipp Wolfer
a319513410 fix-header.py: Preserve shebang
Preserve shebang at start of file. Also ran fix-header.py on itself.
2020-02-22 12:46:48 +01:00
Laurent Monin
5a0abcf156 Add few more entries to aliases 2020-02-22 12:46:48 +01:00
Laurent Monin
6f61574d5f fix-header.py: Fixed merging years from log and file 2020-02-22 12:46:48 +01:00
Philipp Wolfer
3e3713ea82 fix-header.py: Added shebang and moved to scripts/tools 2020-02-22 12:46:48 +01:00
Philipp Wolfer
e2b979e734 fix_header.py: Fixed merging of authors from file and log 2020-02-22 12:46:48 +01:00
Laurent Monin
10a019091b Ignore codacy warnings about subprocess 2020-02-22 12:46:48 +01:00
Laurent Monin
66c19491a3 Add a script to maintain license in source files
It uses existing copyrights and authors from git log.
2020-02-22 12:46:48 +01:00
Philipp Wolfer
84e6322bc3 CI: Split building Windows packages into separate jobs
Upload separate artifacts and build in parallel.
2020-01-29 08:31:26 +01:00
Philipp Wolfer
d552063fdf Use updated builds of fpcalc for windows
For consistency with macOS version. Using updated builds with latest FFmpeg
2020-01-21 18:40:17 +01:00
Philipp Wolfer
e82767e0d8 PICARD-1707: Download updated macOS fpcalc build
Using a macOS fpcalc build from custom repository until an official new version build with newer macOS SDK is available.
2020-01-21 14:08:53 +01:00
Philipp Wolfer
af5440d516 Move changelog-for-version to separate scripts/tools folder 2020-01-14 22:36:11 +01:00
Philipp Wolfer
2d5a5375e3 Add XML doctype to entitlemens.plist 2020-01-14 22:15:31 +01:00
Philipp Wolfer
172df0a831 Do not use virtualenv on macOS builds
This fixes recent build errors and unifies the bild scripts with the Windows version.
2020-01-13 08:24:05 +01:00