mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-22 09:18:18 +00:00
PICARD-2395: Fixed building for macOS
This commit is contained in:
@@ -57,10 +57,16 @@ mv "$APP_BUNDLE.tmp" "$APP_BUNDLE"
|
|||||||
# Fix placing text files in Resources instead of Contents to avoid signatures ending up in extended attributes.
|
# Fix placing text files in Resources instead of Contents to avoid signatures ending up in extended attributes.
|
||||||
# This fixes the signature breaking if extended attributes get removed or modified.
|
# This fixes the signature breaking if extended attributes get removed or modified.
|
||||||
# Fixes https://tickets.metabrainz.org/browse/PICARD-1943 and related issues.
|
# Fixes https://tickets.metabrainz.org/browse/PICARD-1943 and related issues.
|
||||||
mkdir "$APP_BUNDLE/Contents/Resources/Qt/"
|
echo "Fixing location of Qt5 translation resources for code signing..."
|
||||||
mv "$APP_BUNDLE/Contents/MacOS/PyQt5/Qt/translations" "$APP_BUNDLE/Contents/Resources/Qt/"
|
if [[ -d "$APP_BUNDLE/Contents/MacOS/PyQt5/Qt5/" ]]; then
|
||||||
pushd "$APP_BUNDLE/Contents/MacOS/PyQt5/Qt/"
|
QT5_DIR=Qt5
|
||||||
ln -s ../../../Resources/Qt/translations .
|
else # For older PyQt5 installs
|
||||||
|
QT5_DIR=Qt
|
||||||
|
fi
|
||||||
|
mkdir "$APP_BUNDLE/Contents/Resources/$QT5_DIR/"
|
||||||
|
mv "$APP_BUNDLE/Contents/MacOS/PyQt5/$QT5_DIR/translations" "$APP_BUNDLE/Contents/Resources/$QT5_DIR/"
|
||||||
|
pushd "$APP_BUNDLE/Contents/MacOS/PyQt5/$QT5_DIR/"
|
||||||
|
ln -s "../../../Resources/$QT5_DIR/translations" .
|
||||||
popd
|
popd
|
||||||
|
|
||||||
if [ "$CODESIGN" = '1' ]; then
|
if [ "$CODESIGN" = '1' ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user