Skip to content

Commit ede1fbc

Browse files
committed
Add symlink for Mac DMG, to find babl-ext folder at runtime (to prevent crash when using Chromakey)
1 parent 57d2556 commit ede1fbc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

installer/build-mac-dmg.sh

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ mv "$OS_PATH/MacOS/qt.conf" "$OS_PATH/Resources/qt.conf"; ln -s "../Resources/qt
4242
mv "$OS_PATH/MacOS/openshot-qt.hqx" "$OS_PATH/Resources/openshot-qt.hqx"; ln -s "../Resources/openshot-qt.hqx" "$OS_PATH/MacOS/openshot-qt.hqx";
4343
mv "$OS_PATH/MacOS/lib/launch.py" "$OS_PATH/Resources/launch.py"; ln -s "../../Resources/launch.py" "$OS_PATH/MacOS/lib/launch.py";
4444

45+
echo "Symlink lib folder into Resources - needed to find lib/babl-ext at runtime"
46+
ln -s "$OS_PATH/MacOS/lib" "../../Resources/lib";
47+
4548
echo "Fix permissions inside MacOS folder (all everyone to read and execute all the files inside this *.app bundle)"
4649
chmod -R a+rx "$OS_PATH/"*
4750

src/classes/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, *args, **kwargs):
137137
# Set location of OpenShot program (for libopenshot)
138138
openshot.Settings.Instance().PATH_OPENSHOT_INSTALL = info.PATH
139139

140-
# Set BABL extensions path (for windows)
140+
# Set BABL extensions path
141141
babl_ext_path = os.path.join(info.PATH, "lib", "babl-ext")
142142
log.info(f"checking babl_ext_path: {babl_ext_path}")
143143
if os.path.exists(babl_ext_path):

0 commit comments

Comments
 (0)